/* ==========================================================================
   MATRIX COSEC ENTERPRISE STOREFRONT THEME
   Upgrades Front Store to match the Admin Console with full light/dark fidelity
   ========================================================================== */

:root {
  --store-primary: #1e64b8;
  --store-primary-hover: #185296;
  --store-primary-light: #eaf1fb;
  --store-primary-dark: #0f172a;
  --store-surface: #ffffff;
  --store-surface-muted: #f8fafc;
  --store-border: #dcdfe4;
  --store-text: #1e293b;
  --store-text-muted: #64748b;
  --store-success: #10b981;
  --store-danger: #ef4444;
  --store-warning: #f59e0b;
}

[data-bs-theme="dark"] {
  --store-primary: #3b82f6;
  --store-primary-hover: #60a5fa;
  --store-primary-light: rgba(59, 130, 246, 0.15);
  --store-primary-dark: #0b0f19;
  --store-surface: #111827;
  --store-surface-muted: #1e293b;
  --store-border: #374151;
  --store-text: #f8fafc;
  --store-text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.store-body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f4f6f9;
  color: var(--store-text);
  padding-bottom: 4.75rem;
  overflow-x: hidden;
  max-width: 100vw;
}

[data-bs-theme="dark"] body.store-body {
  background: #0b0f19 !important;
  color: #f1f5f9 !important;
}

/* Matrix Topbar Shell for Storefront */
.matrix-store-topbar-wrapper {
  z-index: 1030;
  background: #ffffff;
  border-top: 2.5px solid #1e64b8;
  border-bottom: 1px solid #dcdfe4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .matrix-store-topbar-wrapper {
  background: #111827 !important;
  border-top-color: #3b82f6 !important;
  border-bottom-color: #1f2937 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.matrix-store-topbar {
  height: 54px;
  min-height: 54px;
  max-height: 54px;
}

.matrix-brand-logo {
  height: 28px;
  max-width: 120px;
  object-fit: contain;
}

.matrix-brand-subtext {
  font-size: 10px;
  letter-spacing: 0.2px;
}

.matrix-store-head-nav {
  display: flex;
  align-items: center;
}

.matrix-head-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 140ms ease;
  white-space: nowrap;
}

.matrix-head-nav-link:hover {
  background-color: #f1f5f9;
  color: #1e64b8;
}

.matrix-head-nav-link.active {
  background-color: #eaf1fb;
  color: #1e64b8;
  font-weight: 700;
}

[data-bs-theme="dark"] .matrix-head-nav-link {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .matrix-head-nav-link:hover {
  background-color: #1f2937;
  color: #60a5fa;
}

[data-bs-theme="dark"] .matrix-head-nav-link.active {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

/* Matrix Storefront Search Input */
.matrix-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12.5px;
  color: inherit;
  font-family: inherit;
}

.matrix-search-submit-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  transition: color 140ms ease;
}

.matrix-search-submit-btn:hover {
  color: #1e64b8;
}

/* Secondary Subnav */
.matrix-store-subnav {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 4px 0;
  font-size: 12px;
}

[data-bs-theme="dark"] .matrix-store-subnav {
  background: #0f172a !important;
  border-top-color: #1e293b !important;
}

.matrix-subnav-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  transition: all 140ms ease;
  white-space: nowrap;
}

.matrix-subnav-pill:hover {
  background: #ffffff;
  color: #1e64b8;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.matrix-subnav-pill.active {
  background: #1e64b8;
  color: #ffffff !important;
  font-weight: 600;
}

.matrix-subnav-pill--highlight {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  border: 1px solid #fde68a;
}

[data-bs-theme="dark"] .matrix-subnav-pill {
  color: #94a3b8;
}

[data-bs-theme="dark"] .matrix-subnav-pill:hover {
  background: #1e293b;
  color: #60a5fa;
}

[data-bs-theme="dark"] .matrix-subnav-pill.active {
  background: #2563eb;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .matrix-subnav-pill--highlight {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Matrix Cart Button */
.matrix-cart-btn {
  font-weight: 700;
  border-color: #1e64b8;
  color: #1e64b8;
}

.matrix-cart-btn:hover {
  background: #1e64b8;
  color: #ffffff !important;
}

.matrix-cart-btn:hover i {
  color: #ffffff !important;
}

/* Matrix Footer */
.matrix-store-footer {
  background: #ffffff;
  border-top: 1px solid #dcdfe4;
  color: #334155;
  font-size: 13px;
}

[data-bs-theme="dark"] .matrix-store-footer {
  background: #0f172a !important;
  border-top-color: #1e293b !important;
  color: #94a3b8 !important;
}

.matrix-footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

[data-bs-theme="dark"] .matrix-footer-heading {
  color: #f1f5f9;
}

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

.matrix-footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 120ms ease;
  font-size: 12.5px;
}

.matrix-footer-links a:hover {
  color: #1e64b8;
}

[data-bs-theme="dark"] .matrix-footer-links a {
  color: #94a3b8;
}

[data-bs-theme="dark"] .matrix-footer-links a:hover {
  color: #60a5fa;
}

/* Matrix Drawer */
.matrix-drawer {
  background: #ffffff;
}

[data-bs-theme="dark"] .matrix-drawer {
  background: #111827 !important;
  color: #f1f5f9 !important;
}

.matrix-section-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .matrix-section-title {
  color: #94a3b8;
}

/* Dark Mode Overrides for Front Store Pages */
[data-bs-theme="dark"] .card {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .store-product-card,
[data-bs-theme="dark"] .storefront-product-card {
  background: #111827 !important;
  border-color: #1f2937 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .store-product-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 8px 24px rgba(30, 100, 184, 0.25) !important;
}

[data-bs-theme="dark"] .store-product-card__body h3 a,
[data-bs-theme="dark"] .store-product-card__price-row strong {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .store-product-card__meta,
[data-bs-theme="dark"] .store-product-card__body p {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .store-product-card__media {
  background: #0f172a !important;
}

[data-bs-theme="dark"] .table {
  color: #f1f5f9 !important;
  border-color: #1f2937 !important;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th,
[data-bs-theme="dark"] .table-light td {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

[data-bs-theme="dark"] .catalog-sidebar,
[data-bs-theme="dark"] .product-info-card,
[data-bs-theme="dark"] .product-gallery-card,
[data-bs-theme="dark"] .cart-line-card,
[data-bs-theme="dark"] .cart-summary-card,
[data-bs-theme="dark"] .checkout-card,
[data-bs-theme="dark"] .store-summary-card {
  background: #111827 !important;
  border-color: #1f2937 !important;
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .catalog-toolbar,
[data-bs-theme="dark"] .catalog-sort-links a {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .catalog-sort-links a.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

[data-bs-theme="dark"] .store-mobile-dock {
  background: #111827 !important;
  border-top-color: #1f2937 !important;
}

[data-bs-theme="dark"] .store-mobile-dock__item {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .store-mobile-dock__item.is-active {
  color: #60a5fa !important;
}

@media (min-width: 1200px) {
  body.store-body {
    padding-bottom: 0;
  }
}

body.store-explore-open {
  overflow: hidden;
}

.storefront-header {
  transition: transform 0.25s ease;
}

.storefront-header-hidden .storefront-header {
  transform: translateY(-100%);
}

.store-brand-logo,
.store-brand-mark {
  width: 44px;
  height: 44px;
}

.store-brand-logo {
  object-fit: cover;
}

.store-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: var(--store-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.store-header-icon {
  width: 42px;
  height: 42px;
}

.store-header-icon.active {
  border-color: var(--store-primary);
  color: var(--store-primary);
}

.store-category-pills .nav-link {
  border-radius: 999px;
  color: var(--store-text);
  white-space: nowrap;
}

.store-category-pills .nav-link:not(.active):hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--store-primary);
}

.store-account-menu__avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--store-primary);
  color: #fff;
  font-weight: 700;
}

.store-account-menu__avatar--guest {
  background: rgba(16, 185, 129, 0.12);
  color: var(--store-primary);
}

.store-account-menu__dropdown {
  min-width: 220px;
  border-radius: 1rem;
}

.home-hero-panel {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
}

.home-hero-search .form-control,
.home-hero-search .input-group-text,
.home-hero-search .btn {
  min-height: 56px;
}

.hero-banner-shell {
  min-height: 100%;
}

.hero-banner-shell .carousel,
.hero-banner-shell .carousel-inner,
.hero-banner-shell .carousel-item {
  height: 100%;
}

.hero-banner-shell .carousel-indicators {
  margin-bottom: 1rem;
}

.hero-banner-slide {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.hero-banner-slide__media {
  position: absolute;
  inset: 0;
}

.hero-banner-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.18), rgba(13, 27, 62, 0.72));
}

.hero-banner-slide__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem;
}

.hero-banner-slide--fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quick-discovery-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--store-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 0.75rem 1.25rem rgba(16, 185, 129, 0.08);
}

.quick-link-card i {
  font-size: 1.15rem;
  color: var(--store-primary);
}

.quick-link-card strong {
  font-size: 0.98rem;
}

.quick-link-card span {
  color: var(--store-text-muted);
  font-size: 0.86rem;
}

.home-feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--store-primary);
  margin-bottom: 0.5rem;
}

.store-empty-state {
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--store-border);
  border-radius: 1rem;
  background: #fff;
  text-align: center;
}

.store-empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.store-empty-state p,
.store-empty-text,
.store-muted {
  color: var(--store-text-muted);
}

.metric-tile,
.catalog-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
  height: 100%;
}

.metric-tile strong,
.catalog-summary-card strong {
  font-size: 1.3rem;
}

.metric-tile span,
.catalog-summary-card span {
  color: var(--store-text-muted);
  font-size: 0.9rem;
}

.store-hero-panel,
.store-section-card,
.store-callout-card,
.category-tile,
.catalog-hero-card,
.catalog-sidebar__card,
.product-gallery-card,
.product-info-card,
.product-section-card,
.account-sidebar,
.account-hero-card,
.account-section-card,
.cart-summary-card,
.checkout-card,
.policy-card,
.policy-highlight-card,
.contact-channel-card,
.review-card,
.order-progress-card,
.account-order-card,
.order-card,
.cart-line-card,
.wishlist-mini-card,
.account-quick-card {
  border-radius: 1rem;
}

.category-tile .card-body,
.store-section-card .card-body,
.store-callout-card .card-body,
.catalog-hero-card .card-body,
.catalog-sidebar__card .card-body,
.product-info-card .card-body,
.product-section-card .card-body,
.policy-card .card-body,
.contact-channel-card .card-body,
.account-hero-card,
.account-section-card,
.cart-summary-card,
.checkout-card,
.review-card,
.account-order-card,
.cart-line-card {
  background: #fff;
}

.storefront-product-card {
  overflow: hidden;
}

.storefront-product-card__media {
  position: relative;
  overflow: hidden;
}

.storefront-product-card__media img {
  transition: transform 0.25s ease;
}

.storefront-product-card:hover .storefront-product-card__media img {
  transform: scale(1.04);
}

.storefront-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2rem;
  font-weight: 700;
  color: var(--store-primary);
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--store-border);
  font-size: 0.85rem;
}

.catalog-chip--action {
  text-decoration: none;
  color: var(--store-primary);
}

.store-stock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.store-stock-chip.in-stock {
  background: rgba(25, 135, 84, 0.12);
  color: var(--store-success);
}

.store-stock-chip.out-of-stock {
  background: rgba(220, 53, 69, 0.12);
  color: var(--store-danger);
}

.store-inline-message {
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.store-inline-message.is-working {
  color: var(--store-primary);
}

.store-inline-message.is-success {
  color: var(--store-success);
}

.store-inline-message.is-error {
  color: var(--store-danger);
}

.store-qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--store-border);
  border-radius: 0.75rem;
  overflow: hidden;
  min-width: 150px;
  background: #fff;
}

.store-qty-stepper__button {
  width: 42px;
  border: 0;
  background: var(--store-surface-muted);
  font-size: 1.1rem;
}

.store-qty-stepper input {
  width: 56px;
  border: 0;
  text-align: center;
  outline: none;
}

.product-gallery-card__thumb.is-active {
  border-color: var(--store-primary) !important;
}

.product-info-card__price strong {
  line-height: 1;
}

.product-trust-card {
  height: 100%;
  padding: 1rem;
  border-radius: 0.85rem;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
}

.product-trust-card strong,
.product-trust-card span {
  display: block;
}

.product-trust-card span {
  color: var(--store-text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.specification-list {
  display: grid;
  gap: 0.85rem;
}

.specification-list > div,
.summary-list > div,
.policy-contact-grid > div,
.policy-meta > div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--store-border);
  border-radius: 0.85rem;
  background: var(--store-surface-muted);
}

.specification-list span,
.summary-list span,
.policy-contact-grid span,
.policy-meta span {
  color: var(--store-text-muted);
  font-size: 0.88rem;
}

.review-list {
  display: grid;
  gap: 1rem;
}

.review-card {
  padding: 1.25rem;
  border: 1px solid var(--store-border);
  background: #fff;
}

.catalog-filter-form {
  display: grid;
  gap: 1rem;
}

.catalog-filter-group {
  display: grid;
  gap: 0.5rem;
}

.catalog-filter-group--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  width: min(1320px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.account-content {
  display: grid;
  gap: 1.5rem;
}

.account-sidebar .list-group-item {
  border-left: 0;
  border-right: 0;
}

.account-sidebar .list-group-item.active {
  background: var(--store-primary);
  border-color: var(--store-primary);
}

.account-stat-grid,
.account-quick-grid,
.wishlist-preview-grid,
.account-order-list,
.account-order-stack,
.contact-grid,
.policy-highlight-grid {
  display: grid;
  gap: 1rem;
}

.account-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.account-stat-card,
.policy-highlight-card {
  padding: 1rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.account-stat-card strong {
  font-size: 1.35rem;
}

.account-stat-card span,
.policy-highlight-card span {
  color: var(--store-text-muted);
  font-size: 0.9rem;
}

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

.account-quick-card {
  padding: 1rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
  text-decoration: none;
  color: inherit;
}

.account-quick-card strong,
.account-quick-card span {
  display: block;
}

.account-quick-card span {
  color: var(--store-text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.order-card,
.account-order-card,
.cart-line-card,
.wishlist-mini-card {
  border: 1px solid var(--store-border);
  background: #fff;
}

.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.order-card__summary,
.order-card__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wishlist-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wishlist-mini-card {
  padding: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.wishlist-mini-card img,
.wishlist-mini-card__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  object-fit: cover;
  background: var(--store-surface-muted);
}

.wishlist-mini-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--store-primary);
}

.account-order-card {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.account-order-card__header,
.account-order-card__footer,
.account-order-card__status-row,
.account-order-card__actions,
.account-order-card__actions--compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.account-order-card__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-order-card__meta,
.account-order-card__meta--wide {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 0.85rem;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
}

.account-order-card__meta--wide {
  grid-column: span 2;
}

.account-order-card__note,
.account-order-card__meta span,
.account-order-card__method {
  color: var(--store-text-muted);
}

.order-progress-card {
  padding: 1rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
}

.order-progress-card__bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #dee2e6;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.order-progress-card__bar span {
  display: block;
  height: 100%;
  background: var(--store-primary);
}

.order-progress-card__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: 0.8rem;
}

.order-progress-step {
  text-align: center;
  color: var(--store-text-muted);
}

.order-progress-step.is-complete,
.order-progress-step.is-current {
  color: var(--store-primary);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
}

.status-pill--pending,
.status-pill--processing,
.status-pill--packed,
.status-pill--shipped {
  color: var(--store-primary-dark);
  background: rgba(16, 185, 129, 0.08);
}

.status-pill--delivered,
.status-pill--paid,
.status-pill--refunded {
  color: var(--store-success);
  background: rgba(25, 135, 84, 0.1);
}

.status-pill--cancelled,
.status-pill--failed {
  color: var(--store-danger);
  background: rgba(220, 53, 69, 0.1);
}

.cart-shell,
.checkout-layout,
.checkout-main {
  display: grid;
  gap: 1.5rem;
}

.cart-shell,
.checkout-page {
  width: min(1320px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-line-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.cart-line-card__media,
.cart-line-card__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--store-surface-muted);
}

.cart-line-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--store-primary);
}

.cart-line-card__content,
.cart-line-card__head,
.cart-line-card__actions,
.checkout-summary-lines {
  display: grid;
  gap: 1rem;
}

.cart-line-card__head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-line-card__meta,
.policy-inline-actions,
.footer-contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.checkout-main {
  min-width: 0;
}

.checkout-card {
  padding: 1.5rem;
  border: 1px solid var(--store-border);
  background: #fff;
}

.checkout-card__header,
.checkout-card__header--hero,
.checkout-card__header--subtle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-hero-card__stats,
.checkout-address-grid,
.checkout-form-grid,
.checkout-summary-lines,
.policy-highlight-grid,
.contact-grid,
.policy-contact-grid,
.policy-meta {
  display: grid;
  gap: 1rem;
}

.checkout-hero-card__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-hero-card__stats > div {
  padding: 1rem;
  border-radius: 0.85rem;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
}

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

.checkout-address-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.checkout-address-option input {
  position: absolute;
  opacity: 0;
}

.checkout-address-option span {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
}

.checkout-address-option input:checked + span {
  border-color: var(--store-primary);
  background: rgba(16, 185, 129, 0.06);
}

.checkout-address-option small,
.checkout-address-option em,
.checkout-inline-note,
.checkout-field-hint,
.checkout-address-option__flag {
  color: var(--store-text-muted);
  font-size: 0.88rem;
}

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

.auth-field--full,
.checkout-billing-block,
.checkout-wallet-card,
.checkout-summary-card {
  grid-column: 1 / -1;
}

.checkout-summary-lines > div,
.checkout-wallet-card,
.policy-card__header {
  display: grid;
  gap: 0.25rem;
}

.policy-highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.policy-inline-actions {
  margin-top: 1rem;
}

.policy-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 260px;
}

.store-mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--store-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.store-mobile-dock__item {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 0.15rem;
  color: var(--store-text-muted);
  text-decoration: none;
  font-size: 0.78rem;
}

.store-mobile-dock__item i {
  font-size: 1.2rem;
}

.store-mobile-dock__item.is-active {
  color: var(--store-primary);
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .storefront-header .navbar-brand small {
    display: none;
  }

  .hero-banner-slide {
    min-height: 240px;
  }
}

@media (max-width: 991.98px) {
  .account-shell,
  .cart-layout,
  .checkout-layout,
  .contact-grid,
  .policy-highlight-grid {
    grid-template-columns: 1fr;
  }

  .account-stat-grid,
  .checkout-hero-card__stats,
  .checkout-address-grid,
  .checkout-form-grid,
  .policy-contact-grid,
  .policy-meta,
  .wishlist-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-quick-grid,
  .account-order-card__meta-grid {
    grid-template-columns: 1fr;
  }

  .account-order-card__meta--wide {
    grid-column: auto;
  }

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

  .cart-line-card__head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  body.store-body {
    padding-bottom: 4.75rem;
  }

  .home-hero-search .form-control,
  .home-hero-search .input-group-text,
  .home-hero-search .btn {
    min-height: 50px;
  }

  .hero-banner-slide {
    min-height: 220px;
  }

  .hero-banner-slide__overlay {
    padding: 1.1rem;
  }

  .quick-link-card {
    padding: 0.9rem;
  }

  .account-stat-grid,
  .checkout-hero-card__stats,
  .checkout-address-grid,
  .checkout-form-grid,
  .policy-highlight-grid,
  .policy-contact-grid,
  .policy-meta,
  .wishlist-preview-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter-group--inline {
    grid-template-columns: 1fr;
  }

  .order-card,
  .order-card__summary,
  .order-card__actions,
  .account-order-card__header,
  .account-order-card__footer,
  .account-order-card__status-row,
  .account-order-card__actions,
  .account-order-card__actions--compact {
    grid-template-columns: 1fr;
    display: grid;
    justify-content: stretch;
  }

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

.account-hero-card,
.account-section-card,
.cart-summary-card,
.checkout-card,
.policy-card,
.contact-channel-card {
  padding: 1.5rem;
  border: 1px solid var(--store-border);
  background: #fff;
}

.summary-list,
.store-info-list {
  display: grid;
  gap: 1rem;
}

.store-info-list > div {
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
  color: var(--store-text-muted);
}

.checkout-inline-note {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
  color: var(--store-text-muted);
}

.checkout-toggle-row {
  padding: 0.25rem 0;
}

body.store-body--compact {
  font-size: 0.96rem;
}

.store-body--compact .navbar {
  --bs-navbar-padding-y: 0.75rem;
}

.store-body--compact .btn {
  --bs-btn-padding-y: 0.48rem;
  --bs-btn-padding-x: 0.9rem;
  --bs-btn-font-size: 0.92rem;
}

.store-body--compact .btn-lg {
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-font-size: 1rem;
}

.store-body--compact .card-body,
.store-body--compact .account-hero-card,
.store-body--compact .account-section-card,
.store-body--compact .cart-summary-card,
.store-body--compact .checkout-card,
.store-body--compact .policy-card,
.store-body--compact .contact-channel-card {
  padding: 1.1rem !important;
}

.store-body--compact .metric-tile,
.store-body--compact .catalog-summary-card,
.store-body--compact .quick-link-card,
.store-body--compact .policy-highlight-card,
.store-body--compact .account-stat-card,
.store-body--compact .product-trust-card,
.store-body--compact .specification-list > div,
.store-body--compact .summary-list > div,
.store-body--compact .policy-contact-grid > div,
.store-body--compact .policy-meta > div,
.store-body--compact .store-info-list > div,
.store-body--compact .checkout-inline-note,
.store-body--compact .checkout-address-option span {
  padding: 0.85rem;
}

.store-body--compact .display-5,
.store-body--compact .display-6 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.store-body--compact .lead {
  font-size: 1rem;
}

.store-body--compact .h2,
.store-body--compact h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.store-body--compact .h3,
.store-body--compact h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.store-body--compact .eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
}

.store-body--compact .home-hero-search .form-control,
.store-body--compact .home-hero-search .input-group-text,
.store-body--compact .home-hero-search .btn {
  min-height: 50px;
}

.store-body--compact .hero-banner-slide {
  min-height: 240px;
}

.store-body--compact .hero-banner-slide__overlay {
  padding: 1.1rem;
}

.store-body--compact .storefront-product-card .card-body {
  gap: 0.8rem;
}

.store-body--compact .store-stock-chip,
.store-body--compact .status-pill,
.store-body--compact .catalog-chip {
  font-size: 0.76rem;
}

.store-body--compact .store-mobile-dock__item {
  min-height: 58px;
  font-size: 0.72rem;
}

.store-body--compact .store-mobile-dock__item i {
  font-size: 1.05rem;
}

@media (max-width: 991.98px) {
  .store-body--compact .container-xxl {
    --bs-gutter-x: 1rem;
  }

  .store-body--compact .row {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  body.store-body--compact {
    font-size: 0.92rem;
  }

  .store-body--compact .navbar-brand {
    gap: 0.65rem !important;
  }

  .store-body--compact .store-brand-logo,
  .store-body--compact .store-brand-mark {
    width: 38px;
    height: 38px;
  }

  .store-body--compact .store-header-icon {
    width: 38px;
    height: 38px;
  }

  .store-body--compact .display-5,
  .store-body--compact .display-6 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .store-body--compact .hero-banner-slide {
    min-height: 200px;
  }

  .store-body--compact .quick-link-card,
  .store-body--compact .category-tile .card-body {
    padding: 0.8rem;
  }

  .store-body--compact .storefront-product-card .card-body {
    padding: 0.85rem !important;
  }
}

.account-page-hero {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
}

.account-page-hero--primary {
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.98), rgba(16, 185, 129, 0.94)),
    linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  color: #fff;
}

.account-page-hero--primary .eyebrow,
.account-page-hero--primary h1,
.account-page-hero--primary h2,
.account-page-hero--primary strong,
.account-page-hero--primary span,
.account-page-hero--primary p {
  color: inherit;
}

.account-page-hero--primary .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.account-metric-card {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.12);
  background: rgba(16, 185, 129, 0.04);
}

.account-metric-card span {
  color: var(--store-text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.account-metric-card strong {
  font-size: 1.05rem;
  color: var(--store-text);
  line-height: 1.35;
}

.account-metric-card--inverse {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.account-metric-card--inverse span,
.account-metric-card--inverse strong {
  color: #fff;
}

.account-shortcut-card {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--store-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0.9rem 1.75rem rgba(16, 185, 129, 0.08);
}

.account-shortcut-card strong {
  color: var(--store-text);
}

.account-shortcut-card span {
  color: var(--store-text-muted);
  font-size: 0.9rem;
}

.account-dashboard-list .list-group-item:last-child {
  margin-bottom: 0;
}

.account-security-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
}

.account-security-tile span,
.account-security-tile p {
  color: var(--store-text-muted);
}

.account-security-tile p {
  margin: 0;
  font-size: 0.88rem;
}

.account-address-card {
  border: 1px solid var(--store-border);
}

.account-address-card--default {
  border-color: rgba(25, 135, 84, 0.28);
  box-shadow: 0 1rem 2rem rgba(25, 135, 84, 0.08);
}

.account-address-card__lines {
  display: grid;
  gap: 0.25rem;
  color: var(--store-text);
}

.account-info-box {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
}

.account-info-box strong {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--store-text-muted);
}

.account-info-box span {
  color: var(--store-text);
}

.wallet-balance-panel {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(16, 185, 129, 0.92));
  color: #fff;
}

.wallet-balance-panel strong {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.wallet-balance-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.account-info-list {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.1rem;
}

.account-info-list li {
  color: var(--store-text-muted);
}

.wishlist-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.wishlist-card__media {
  overflow: hidden;
}

.wishlist-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  font-weight: 700;
  color: var(--store-primary);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.store-inline-form {
  display: inline-flex;
}

.store-button,
.store-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--store-primary);
  background: var(--store-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.store-button:hover,
.store-link-button:hover {
  background: var(--store-primary-dark);
  border-color: var(--store-primary-dark);
  color: #fff;
}

.store-button--secondary {
  background: #fff;
  color: var(--store-text);
  border-color: var(--store-border);
}

.store-button--secondary:hover {
  background: var(--store-surface-muted);
  border-color: var(--store-border);
  color: var(--store-text);
}

.store-button--danger {
  background: var(--store-danger);
  border-color: var(--store-danger);
}

.store-button--danger:hover {
  background: #bb2d3b;
  border-color: #bb2d3b;
}

.store-button--sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.section-heading--compact {
  gap: 0.75rem;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
}

.catalog-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--store-text);
}

.catalog-checkbox input {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 767.98px) {
  .account-metric-card,
  .account-shortcut-card,
  .account-security-tile,
  .account-info-box,
  .wallet-balance-panel,
  .wishlist-card .card-body {
    padding: 0.9rem;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }
}

.account-content {
  min-width: 0;
}

.account-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  overflow: hidden;
}

.account-sidebar .card-body {
  padding: 1.25rem;
}

.account-sidebar .list-group-item {
  padding: 0.95rem 1.25rem;
  font-weight: 500;
}

.account-sidebar .list-group-item i {
  width: 1.1rem;
}

.account-sidebar .list-group-item.active {
  color: #fff;
}

.account-order-card__identity,
.account-order-card__meta {
  min-width: 0;
}

.account-order-card--cancelled {
  opacity: 0.96;
}

.account-order-card__note {
  max-width: 48rem;
}

@media (max-width: 991.98px) {
  .account-sidebar {
    position: static;
    top: auto;
  }
}

.invoice-document-card {
  border: 1px solid var(--store-border);
}

.invoice-document-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--store-border);
}

.invoice-meta-grid {
  display: grid;
  gap: 0.85rem;
}

.invoice-meta-grid > div,
.invoice-info-card,
.invoice-status-note {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
}

.invoice-meta-grid > div,
.invoice-kv-grid > div {
  display: grid;
  gap: 0.25rem;
}

.invoice-meta-grid span,
.invoice-kv-grid span,
.invoice-status-note p {
  color: var(--store-text-muted);
  font-size: 0.9rem;
}

.invoice-info-card {
  height: 100%;
}

.invoice-info-card__head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.invoice-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.invoice-kv-grid__wide {
  grid-column: 1 / -1;
}

.invoice-timeline {
  display: grid;
  gap: 0.9rem;
}

.invoice-timeline__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.invoice-timeline__dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--store-primary);
  margin-top: 0.45rem;
  box-shadow: 0 0 0 0.3rem rgba(16, 185, 129, 0.14);
}

.invoice-timeline__content {
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--store-border);
}

.invoice-timeline__item:last-child .invoice-timeline__content {
  padding-bottom: 0;
  border-bottom: 0;
}

.invoice-items-table th,
.invoice-items-table td {
  vertical-align: top;
}

.invoice-items-table td {
  color: var(--store-text);
}

@media (max-width: 991.98px) {
  .invoice-document-card__header,
  .invoice-kv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .invoice-document-card__header,
  .invoice-meta-grid,
  .invoice-kv-grid,
  .invoice-status-note,
  .invoice-timeline {
    gap: 0.75rem;
  }

  .invoice-items-table thead {
    display: none;
  }

  .invoice-items-table,
  .invoice-items-table tbody,
  .invoice-items-table tr,
  .invoice-items-table td {
    display: block;
    width: 100%;
  }

  .invoice-items-table tr {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--store-border);
  }

  .invoice-items-table tr:last-child {
    border-bottom: 0;
  }

  .invoice-items-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border: 0;
    text-align: right;
  }

  .invoice-items-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--store-text-muted);
    text-align: left;
  }
}

.account-order-grid {
  align-items: stretch;
}

.account-order-card--grid {
  overflow: hidden;
}

.account-order-card__header--card {
  align-items: flex-start;
}

.account-order-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-order-overview__item,
.account-order-card__panel {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
}

.account-order-overview__item span,
.account-order-card__panel p {
  color: var(--store-text-muted);
}

.account-order-overview__item span {
  font-size: 0.82rem;
}

.account-order-overview__item strong {
  color: var(--store-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.account-order-card__panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-order-card__panel {
  height: 100%;
}

.account-order-card__panel .eyebrow {
  margin-bottom: 0;
}

.account-order-card__actions--card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.account-order-card__actions--card > * {
  min-width: 0;
}

.account-order-card__actions--card .btn,
.account-order-card__actions--card .store-inline-form {
  width: 100%;
}

.account-order-card__actions--card .store-inline-form .btn {
  width: 100%;
}

@media (max-width: 1199.98px) {
  .account-order-overview,
  .account-order-card__panel-grid,
  .account-order-card__actions--card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .account-order-overview,
  .account-order-card__panel-grid,
  .account-order-card__actions--card {
    grid-template-columns: 1fr;
  }
}

body:not(.admin-lte-body) button.is-busy,
body:not(.admin-lte-body) input.is-busy {
  cursor: wait;
}

body:not(.admin-lte-body) button.is-busy .spinner-border {
  vertical-align: -0.125em;
}

/* Premium compact storefront rebuild */
body.store-body {
  --shop-bg: #f4fbf7;
  --shop-surface: #ffffff;
  --shop-surface-muted: #e6f5ef;
  --shop-border: #d1ebd8;
  --shop-border-soft: #e6f5ef;
  --shop-text: #0b2c22;
  --shop-muted: #47695d;
  --shop-accent: #10b981;
  --shop-accent-soft: rgba(16, 185, 129, 0.08);
  --shop-success: #10b981;
  --shop-danger: #ef4444;
  --shop-warning: #fbbf24;
  --shop-radius: 1rem;
  --shop-radius-sm: 0.72rem;
  --shop-shadow: 0 20px 40px -15px rgba(6, 78, 59, 0.06);
  --shop-shadow-sm: 0 10px 24px -8px rgba(6, 78, 59, 0.03);
  min-width: 0;
  overflow-x: hidden;
  background: var(--shop-bg);
  color: var(--shop-text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
}

body.store-body a {
  color: inherit;
}

body.store-body img {
  max-width: 100%;
}

.store-container {
  width: min(1240px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.store-main {
  min-width: 0;
}

.store-page {
  padding-block: 1rem 1.75rem;
}

.store-header-shell {
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--shop-border-soft);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(16px);
}

.store-header-main {
  padding-block: 0.55rem;
}

.store-header-grid {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--shop-text);
  text-decoration: none;
}

.store-brand-logo,
.store-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  flex: 0 0 auto;
}

.store-brand-logo {
  object-fit: contain;
  border: 1px solid var(--shop-border-soft);
  background: #fff;
}

.store-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shop-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
}

.store-brand-copy {
  display: grid;
  min-width: 0;
}

.store-brand-copy span {
  overflow: hidden;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-brand-copy small {
  overflow: hidden;
  max-width: 16rem;
  color: var(--shop-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-search {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 2.35rem;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: var(--shop-surface);
}

.store-search--mobile {
  margin-top: 0.55rem;
}

.store-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  color: var(--shop-muted);
}

.store-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--shop-text);
  font-size: 0.86rem;
}

.store-search button {
  align-self: stretch;
  padding-inline: 0.95rem;
  border: 0;
  background: var(--shop-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
}

.store-header-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

.store-icon-button,
.store-account-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shop-border);
  background: var(--shop-surface);
  color: var(--shop-text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.store-icon-button {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
}

.store-icon-button--sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.82rem;
}

.store-icon-button:hover,
.store-icon-button:focus-visible,
.store-account-button:hover,
.store-account-button:focus-visible {
  border-color: #aeb8c8;
  background: var(--shop-accent-soft);
}

.store-count-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--shop-danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 750;
}

.store-account-button {
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
}

.store-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--shop-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.store-account-menu {
  min-width: 13.5rem;
  padding: 0.4rem;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  box-shadow: var(--shop-shadow-sm);
}

.store-account-menu .dropdown-item {
  border-radius: 0.55rem;
  font-size: 0.86rem;
}

.store-nav-strip {
  border-top: 1px solid var(--shop-border-soft);
  background: #fff;
}

.store-category-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  overflow-x: auto;
  padding-block: 0.35rem;
}

.store-category-nav a {
  flex: 0 0 auto;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  color: var(--shop-muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.store-category-nav a:hover,
.store-category-nav a.is-active {
  background: var(--shop-accent-soft);
  color: var(--shop-text);
}

.store-mobile-drawer {
  max-width: min(88vw, 22rem);
}

.store-drawer-section {
  display: grid;
  gap: 0.35rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--shop-border-soft);
}

.store-drawer-section:last-child {
  border-bottom: 0;
}

.store-drawer-section strong {
  color: var(--shop-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-drawer-section a {
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--shop-text);
  text-decoration: none;
}

.store-drawer-section a:hover {
  background: var(--shop-surface-muted);
}

.store-alert {
  border-radius: var(--shop-radius);
  border-width: 1px;
  box-shadow: var(--shop-shadow-sm);
}

.store-footer {
  padding-block: 1.4rem;
  border-top: 1px solid var(--shop-border-soft);
  background: #fff;
}

.store-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  gap: 1.25rem;
}

.store-footer h2,
.store-footer h3 {
  margin-bottom: 0.55rem;
  color: var(--shop-text);
  font-size: 0.95rem;
  font-weight: 750;
}

.store-footer p,
.store-footer a,
.store-footer-bottom {
  color: var(--shop-muted);
  font-size: 0.82rem;
}

.store-footer section {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.store-footer a {
  text-decoration: none;
}

.store-footer a:hover {
  color: var(--shop-text);
}

.store-footer-contact {
  display: grid;
  gap: 0.3rem;
}

.store-footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.store-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--shop-border-soft);
}

.store-mobile-dock {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

.store-mobile-dock__item {
  border: 0;
  background: transparent;
}

.store-page-header,
.store-section-head,
.store-summary-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.store-page-header {
  margin-bottom: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--shop-border-soft);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: var(--shop-shadow-sm);
}

.store-page-header h1 {
  margin: 0.15rem 0 0.25rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.store-page-header p,
.store-section-head p,
.store-summary-card__head span {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.84rem;
}

.store-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.store-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--shop-muted);
  font-size: 0.78rem;
}

.store-breadcrumb a {
  color: var(--shop-muted);
  text-decoration: none;
}

.store-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.25rem;
  color: var(--shop-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-empty-state {
  padding: 2rem 1rem;
  border: 1px dashed #c7cfdd;
  border-radius: var(--shop-radius);
  background: #fff;
}

.store-empty-state h2,
.store-empty-state h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.store-empty-state p,
.store-muted {
  color: var(--shop-muted);
}

.catalog-toolbar,
.catalog-active-filters,
.catalog-sort-links,
.catalog-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.catalog-toolbar {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.catalog-sort-links a,
.catalog-category-strip a,
.catalog-active-filters span,
.catalog-clear-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: #fff;
  color: var(--shop-muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.catalog-sort-links a.is-active,
.catalog-category-strip a.is-active {
  border-color: var(--shop-accent);
  background: var(--shop-accent);
  color: #fff;
}

.catalog-category-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
}

.store-filter-sheet {
  height: min(86vh, 42rem);
  border-radius: 1rem 1rem 0 0;
}

.catalog-active-filters {
  margin-bottom: 0.75rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 7.25rem;
}

.store-filter-panel {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: var(--shop-shadow-sm);
}

.store-filter-panel__head,
.store-filter-panel__actions {
  display: grid;
  gap: 0.45rem;
}

.store-filter-panel__head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.store-filter-panel__head strong,
.store-filter-panel__head small {
  display: block;
}

.store-filter-panel__head small,
.store-filter-panel__head a {
  color: var(--shop-muted);
  font-size: 0.76rem;
}

.catalog-filter-group {
  display: grid;
  gap: 0.3rem;
}

.catalog-filter-group label,
.catalog-checkbox {
  color: var(--shop-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.catalog-filter-group--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.catalog-product-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.store-product-card {
  overflow: hidden;
  border: 1px solid var(--shop-border-soft);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: none;
}

.store-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--shop-surface-muted);
}

.store-product-card__media a,
.storefront-product-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.store-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.store-product-card:hover .store-product-card__media img {
  transform: scale(1.035);
}

.storefront-product-card__placeholder {
  color: var(--shop-muted);
  font-size: 2rem;
  font-weight: 800;
}

.store-product-card__flags,
.store-product-card__wishlist {
  position: absolute;
  z-index: 2;
}

.store-product-card__flags {
  top: 0.45rem;
  left: 0.45rem;
  display: grid;
  gap: 0.25rem;
}

.store-product-card__flags span,
.store-product-card__chips span {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--shop-text);
  font-size: 0.68rem;
  font-weight: 750;
}

.store-product-card__wishlist {
  top: 0.45rem;
  right: 0.45rem;
}

.store-product-card__body {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
}

.store-product-card__meta,
.store-product-card__rating,
.store-product-card__price-row,
.store-product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.store-product-card__meta,
.store-product-card__rating small,
.store-product-card__body p {
  color: var(--shop-muted);
  font-size: 0.74rem;
}

.store-product-card__body h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
}

.store-product-card__body h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--shop-text);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.store-product-card__body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.15em;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-product-card__rating {
  justify-content: flex-start;
  color: #b7791f;
}

.store-product-card__price-row strong {
  font-size: 1.02rem;
}

.store-product-card__price-row del {
  margin-left: 0.3rem;
  color: var(--shop-muted);
  font-size: 0.76rem;
}

.store-product-card__actions form {
  flex: 1;
}

.store-stock-chip {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
}

.store-stock-chip.in-stock {
  background: rgba(21, 115, 71, 0.1);
  color: var(--shop-success);
}

.store-stock-chip.out-of-stock {
  background: rgba(180, 35, 24, 0.1);
  color: var(--shop-danger);
}

.product-detail-layout,
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.product-gallery-card,
.product-info-card,
.product-section-card,
.store-section-card,
.cart-line-card,
.cart-summary-card,
.checkout-card,
.checkout-summary-card,
.payment-card,
.confirmation-card,
.confirmation-hero {
  border: 1px solid var(--shop-border-soft);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: var(--shop-shadow-sm);
}

.product-gallery-card {
  position: sticky;
  top: 7.25rem;
  padding: 0.75rem;
}

.product-gallery-card__main {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--shop-surface-muted);
}

.product-gallery-card__main img,
.product-gallery-card__placeholder {
  width: 100%;
  height: 100%;
}

.product-gallery-card__main img {
  object-fit: cover;
}

.product-gallery-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  font-size: 3rem;
  font-weight: 800;
}

.product-gallery-card__badges {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  display: grid;
  gap: 0.3rem;
}

.product-gallery-card__badges span {
  width: fit-content;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 750;
}

.product-gallery-card__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.product-gallery-card__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--shop-border);
  border-radius: 0.55rem;
  background: #fff;
}

.product-gallery-card__thumb.is-active {
  border-color: var(--shop-accent);
  box-shadow: inset 0 0 0 1px var(--shop-accent);
}

.product-gallery-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-card,
.product-section-card,
.store-section-card,
.payment-card,
.confirmation-card {
  padding: 1rem;
}

.product-info-card {
  display: grid;
  gap: 0.8rem;
}

.product-info-card__meta,
.product-rating-row,
.product-secondary-actions,
.product-trust-row,
.product-info-card__meta span,
.product-quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-info-card__meta span,
.product-quick-specs div,
.product-trust-row div {
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--shop-border-soft);
  border-radius: 0.7rem;
  background: var(--shop-surface-muted);
  color: var(--shop-muted);
  font-size: 0.78rem;
}

.product-info-card h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.04em;
}

.product-info-card__description {
  margin: 0;
  color: var(--shop-muted);
  line-height: 1.55;
}

.product-rating-row {
  align-items: center;
  color: #b7791f;
}

.product-rating-row small {
  color: var(--shop-muted);
}

.product-price-panel {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: var(--shop-surface-muted);
}

.product-price-panel strong {
  font-size: 1.55rem;
  line-height: 1;
}

.product-price-panel del,
.product-price-panel small {
  color: var(--shop-muted);
}

.product-quick-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-quick-specs div,
.product-trust-row div {
  display: grid;
  gap: 0.15rem;
}

.product-quick-specs strong {
  color: var(--shop-text);
}

.product-buy-box {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.65rem;
}

.store-qty-stepper {
  min-width: 0;
  height: 2.35rem;
  border-radius: 0.65rem;
}

.store-qty-stepper__button {
  width: 2.35rem;
}

.store-qty-stepper input {
  width: 3rem;
}

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

.product-secondary-actions form,
.product-secondary-actions .btn {
  width: 100%;
}

.product-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.store-section-head h2,
.checkout-card h2,
.confirmation-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 760;
}

.specification-list {
  display: grid;
  gap: 0.5rem;
}

.specification-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--shop-border-soft);
  background: transparent;
}

.review-form {
  padding: 0.75rem;
  border: 1px solid var(--shop-border-soft);
  border-radius: 0.75rem;
  background: var(--shop-surface-muted);
}

.review-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.review-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-card small,
.review-card p {
  margin: 0;
  color: var(--shop-muted);
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

.cart-list,
.checkout-main {
  display: grid;
  gap: 0.75rem;
}

.cart-line-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem;
}

.cart-line-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.7rem;
  background: var(--shop-surface-muted);
}

.cart-line-card__media img,
.cart-line-card__placeholder {
  width: 100%;
  height: 100%;
}

.cart-line-card__media img {
  object-fit: cover;
}

.cart-line-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  font-weight: 800;
}

.cart-line-card__content,
.cart-line-card__head,
.cart-line-card__actions,
.cart-qty-form {
  display: grid;
  gap: 0.55rem;
}

.cart-line-card__head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-line-card h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 760;
}

.cart-line-card h2 a {
  text-decoration: none;
}

.cart-line-card__meta,
.cart-line-card__price small {
  color: var(--shop-muted);
  font-size: 0.75rem;
}

.cart-line-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-line-card__price {
  display: grid;
  gap: 0.15rem;
  text-align: right;
}

.cart-line-card__actions,
.cart-qty-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.store-summary-card {
  position: sticky;
  top: 7.25rem;
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
}

.checkout-summary-lines,
.checkout-mini-items,
.store-summary-card__notes,
.next-step-list,
.address-summary {
  display: grid;
  gap: 0.45rem;
}

.checkout-summary-lines > div,
.checkout-mini-items > div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--shop-border-soft);
}

.checkout-summary-lines span,
.checkout-mini-items span,
.store-summary-card__notes,
.address-summary span {
  color: var(--shop-muted);
  font-size: 0.82rem;
}

.checkout-summary-lines .is-total {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--shop-border);
  border-bottom: 0;
}

.checkout-summary-lines .is-total strong {
  font-size: 1.05rem;
}

.store-summary-card__notes {
  margin: 0;
  padding-left: 1rem;
}

.checkout-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
}

.checkout-card__header p {
  margin: 0.15rem 0 0;
  color: var(--shop-muted);
  font-size: 0.82rem;
}

.checkout-address-grid,
.checkout-payment-grid,
.checkout-form-grid {
  display: grid;
  gap: 0.65rem;
}

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

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

.checkout-address-option,
.checkout-payment-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.checkout-address-option input,
.checkout-payment-option input {
  position: absolute;
  opacity: 0;
}

.checkout-address-option span,
.checkout-payment-option span {
  display: grid;
  gap: 0.25rem;
  height: 100%;
  padding: 0.7rem;
  border: 1px solid var(--shop-border);
  border-radius: 0.75rem;
  background: #fff;
}

.checkout-address-option input:checked + span,
.checkout-payment-option input:checked + span {
  border-color: var(--shop-accent);
  background: var(--shop-accent-soft);
}

.checkout-address-option small,
.checkout-address-option em,
.checkout-payment-option small {
  color: var(--shop-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.checkout-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--shop-text);
  font-size: 0.84rem;
  font-weight: 650;
}

.checkout-toggle-row input {
  width: 1rem;
  height: 1rem;
}

.checkout-billing-block {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.checkout-side-section,
.checkout-wallet-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid var(--shop-border-soft);
  border-radius: 0.75rem;
  background: var(--shop-surface-muted);
}

.checkout-wallet-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.store-applied-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  color: var(--shop-success);
  font-size: 0.8rem;
}

.checkout-inline-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--shop-border-soft);
  border-radius: 0.7rem;
  background: var(--shop-surface-muted);
  color: var(--shop-muted);
  font-size: 0.8rem;
}

.checkout-submit-state {
  display: grid;
  gap: 0.4rem;
}

.checkout-submit-state[hidden] {
  display: none !important;
}

.payment-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
}

.payment-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 780;
}

.payment-card p {
  max-width: 42rem;
  margin: 0;
  color: var(--shop-muted);
}

.payment-action {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.confirmation-hero {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  padding: 1.35rem;
  margin-bottom: 1rem;
  text-align: center;
}

.confirmation-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(21, 115, 71, 0.1);
  color: var(--shop-success);
  font-size: 1.2rem;
}

.confirmation-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}

.confirmation-hero p {
  max-width: 46rem;
  margin: 0;
  color: var(--shop-muted);
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.next-step-list > div {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--shop-muted);
}

.store-compact-table {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.store-compact-table th {
  color: var(--shop-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .store-header-grid {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .store-brand-copy small {
    display: none;
  }

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

@media (max-width: 991.98px) {
  body.store-body {
    padding-bottom: 4.7rem;
  }

  .catalog-layout,
  .product-detail-layout,
  .product-content-grid,
  .payment-layout,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery-card,
  .store-summary-card,
  .catalog-sidebar {
    position: static;
  }

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

@media (max-width: 767.98px) {
  .store-container {
    width: min(100% - 1rem, 1240px);
  }

  .store-page {
    padding-block: 0.75rem 1rem;
  }

  .store-page-header,
  .store-section-head,
  .store-footer-bottom,
  .cart-line-card__head {
    display: grid;
  }

  .store-page-header {
    padding: 0.85rem;
  }

  .store-page-actions,
  .confirmation-actions {
    width: 100%;
  }

  .store-page-actions .btn,
  .confirmation-actions .btn {
    flex: 1 1 auto;
  }

  .store-brand-copy span {
    max-width: 9rem;
  }

  .catalog-product-grid,
  .catalog-product-grid--compact {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .store-product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 0;
  }

  .store-product-card__media {
    height: 100%;
    min-height: 142px;
    aspect-ratio: auto;
  }

  .store-product-card__body {
    padding: 0.7rem;
  }

  .store-product-card__body p {
    -webkit-line-clamp: 1;
    min-height: 1.1em;
  }

  .store-product-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-quick-specs,
  .product-trust-row,
  .checkout-address-grid,
  .checkout-payment-grid,
  .checkout-form-grid,
  .confirmation-grid {
    grid-template-columns: 1fr;
  }

  .product-buy-box {
    grid-template-columns: 1fr;
  }

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

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

  .cart-line-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.7rem;
  }

  .cart-line-card__actions,
  .cart-qty-form {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cart-line-card__price {
    text-align: left;
  }

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

@media (max-width: 420px) {
  .store-product-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .store-product-card__media {
    min-height: 132px;
  }

  .store-product-card__meta,
  .store-product-card__rating,
  .store-product-card__chips {
    display: none;
  }

  .store-product-card__body h3 {
    font-size: 0.86rem;
  }
}

/* Account portal: compact premium customer experience */
/* ==========================================================================
   Account portal: Advanced Luxury Customer Experience & ERP Workspace
   ========================================================================== */
.account-portal {
  --account-ink: #0f172a;
  --account-heading: #1e293b;
  --account-muted: #64748b;
  --account-light-muted: #94a3b8;
  --account-border: #dcdfe4;
  --account-border-hover: #cbd5e1;
  --account-card-bg: #ffffff;
  --account-soft: #f8fafc;
  --account-accent: #1e64b8;
  --account-accent-rgb: 30, 100, 184;
  --account-accent-soft: rgba(30, 100, 184, 0.08);
  --account-accent-gradient: linear-gradient(135deg, #1e64b8 0%, #2563eb 50%, #3b82f6 100%);
  --account-accent-hover: linear-gradient(135deg, #185296 0%, #1e64b8 100%);
  --account-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --account-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --account-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
  --account-radius: 10px;
  --account-radius-lg: 12px;
}

[data-bs-theme="dark"] .account-portal {
  --account-ink: #f8fafc;
  --account-heading: #f1f5f9;
  --account-muted: #94a3b8;
  --account-light-muted: #64748b;
  --account-border: #1f2937;
  --account-border-hover: #374151;
  --account-card-bg: #111827;
  --account-soft: #162032;
  --account-accent: #3b82f6;
  --account-accent-rgb: 59, 130, 246;
  --account-accent-soft: rgba(59, 130, 246, 0.15);
  --account-accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  --account-accent-hover: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  --account-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --account-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4);
  --account-shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.5);
}

.account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Sidebar Pro Navigation */
.account-sidebar-pro {
  position: sticky;
  top: 75px;
  display: grid;
  gap: 0.75rem;
}

.account-sidebar-card {
  overflow: hidden;
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius-lg);
  background: var(--account-card-bg);
  box-shadow: var(--account-shadow);
  transition: box-shadow 0.2s ease;
}

.account-sidebar-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--account-border);
  background: var(--account-soft);
}

.account-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--account-accent-gradient);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(30, 100, 184, 0.28);
}

.account-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.account-sidebar-head strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--account-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.account-sidebar-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--account-muted);
  font-size: 0.74rem;
}

.account-sidebar-wallet-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0.75rem 0.25rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06) 0%, rgba(20, 184, 166, 0.09) 100%);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 10px;
}

.account-sidebar-wallet-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f766e;
}

.account-sidebar-wallet-badge strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f766e;
}

.account-nav-pro {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem;
}

.account-nav-link,
.account-nav-form button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0.52rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: all 0.18s ease;
}

.account-nav-link svg,
.account-nav-form button svg {
  color: #64748b;
  transition: color 0.18s ease;
}

.account-nav-link:hover,
.account-nav-form button:hover {
  background: #f1f5f9;
  color: var(--account-heading);
}

.account-nav-link:hover svg,
.account-nav-form button:hover svg {
  color: var(--account-accent);
}

.account-nav-link.is-active {
  background: var(--account-accent-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
}

.account-nav-link.is-active svg {
  color: #ffffff;
}

.account-nav-form button {
  color: #94a3b8;
}

.account-nav-form button:hover {
  background: #fef2f2;
  color: #ef4444;
}

.account-nav-form button:hover svg {
  color: #ef4444;
}

.account-sidebar-note {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--account-border);
  color: var(--account-muted);
  font-size: 0.72rem;
  background: #f8fafc;
}

/* Main Workspace */
.account-main {
  min-width: 0;
}

/* Page Head / Hero Header */
.account-page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius-lg);
  background: #ffffff;
  box-shadow: var(--account-shadow-sm);
}

.account-page-head h1 {
  margin: 0.15rem 0 0.2rem;
  color: var(--account-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.account-page-kicker {
  display: inline-block;
  margin: 0;
  color: var(--account-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-page-head p {
  margin: 0;
  color: var(--account-muted);
  font-size: 0.82rem;
}

.account-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Hero Welcome Banner Card */
.account-hero-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(30, 100, 184, 0.25);
  border-radius: var(--account-radius-lg);
  background: linear-gradient(135deg, #0f2b59 0%, #1e64b8 55%, #174d8e 100%);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(30, 100, 184, 0.35);
}

.account-hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

[data-bs-theme="dark"] .account-hero-card {
  background: linear-gradient(135deg, #08111e 0%, #11294d 55%, #0b1a30 100%) !important;
  border-color: #1f3a60 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
}

.account-hero-title {
  margin: 0.2rem 0 0.3rem;
  color: #ffffff;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.account-hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  max-width: 600px;
  margin: 0;
}

/* Metric / Stat Cards */
.account-grid,
.account-grid-2,
.account-grid-3,
.account-grid-4 {
  display: grid;
  gap: 0.85rem;
}

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

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

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

.account-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 98px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius);
  background: var(--account-card-bg);
  box-shadow: var(--account-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.account-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--account-shadow);
  border-color: #cbd5e1;
}

.account-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.account-stat-kicker {
  display: block;
  color: var(--account-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.account-stat-icon--teal {
  background: #f0fdfa;
  color: #0f766e;
}

.account-stat-icon--blue {
  background: #eff6ff;
  color: #2563eb;
}

.account-stat-icon--amber {
  background: #fffbeb;
  color: #d97706;
}

.account-stat-icon--purple {
  background: #faf5ff;
  color: #9333ea;
}

.account-stat strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--account-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.account-stat small {
  display: block;
  margin-top: 0.25rem;
  color: var(--account-muted);
  font-size: 0.74rem;
}

/* General Account Cards */
.account-card {
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius-lg);
  background: var(--account-card-bg);
  box-shadow: var(--account-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

.account-card:hover {
  box-shadow: var(--account-shadow);
}

.account-card__body {
  padding: 1.15rem;
}

.account-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.account-card__head h2,
.account-card__head h3 {
  margin: 0;
  color: var(--account-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.account-card__head p {
  margin: 0.15rem 0 0;
  color: var(--account-muted);
  font-size: 0.78rem;
}

/* Quick Action Tiles */
.account-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-action-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 76px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius);
  background: var(--account-soft);
  color: var(--account-heading);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-action-tile:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: var(--account-shadow);
  transform: translateY(-2px);
  color: var(--account-accent);
}

.account-action-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--account-accent);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.account-action-tile strong {
  display: block;
  color: var(--account-heading);
  font-size: 0.88rem;
  font-weight: 750;
}

.account-action-tile span {
  display: block;
  color: var(--account-muted);
  font-size: 0.74rem;
}

/* Modern Status Badges */
.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 24px;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--account-border);
  border-radius: 999px;
  background: var(--account-soft);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.account-badge--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.account-badge--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.account-badge--danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.account-badge--info {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

/* Button Overrides */
.account-portal .btn {
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 10px;
  padding: 0.42rem 0.85rem;
  transition: all 0.18s ease;
}

.account-portal .btn-primary {
  background: var(--account-accent-gradient);
  border-color: #0f766e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.account-portal .btn-primary:hover {
  background: var(--account-accent-hover);
  border-color: #115e59;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.account-portal .btn-outline-success {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.4);
  background-color: transparent;
}

.account-portal .btn-outline-success:hover {
  color: #fff;
  background: var(--account-accent-gradient);
  border-color: #0f766e;
  transform: translateY(-1px);
}

.account-portal .btn-outline-secondary {
  color: var(--account-muted);
  border-color: var(--account-border);
  background-color: #ffffff;
}

.account-portal .btn-outline-secondary:hover {
  color: var(--account-heading);
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.account-portal .btn-outline-danger {
  color: #dc2626;
  border-color: #fca5a5;
  background-color: transparent;
}

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

/* Order Cards Grid */
.account-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-order-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.1rem;
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius-lg);
  background: var(--account-card-bg);
  box-shadow: var(--account-shadow-sm);
  transition: all 0.2s ease;
}

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

.account-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #f1f5f9;
}

.account-order-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--account-heading);
}

.account-order-items-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.3rem 0;
}

.account-order-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--account-border);
  object-fit: cover;
  flex-shrink: 0;
}

.account-data-pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f8fafc;
  color: var(--account-muted);
  font-size: 0.8rem;
}

.account-data-pair strong {
  color: var(--account-heading);
  font-weight: 700;
}

/* Virtual Digital Wallet Card */
.account-virtual-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.4rem;
  background: linear-gradient(135deg, #090d16 0%, #1e293b 50%, #042f2e 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-virtual-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
}

.account-chip-emv {
  width: 36px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa771c 100%);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.account-contactless-wave {
  display: inline-flex;
  opacity: 0.75;
}

/* Stepper / Tracking Progress Bar */
.account-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.account-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.account-stepper-progress {
  position: absolute;
  top: 18px;
  left: 2rem;
  height: 3px;
  background: var(--account-accent-gradient);
  z-index: 2;
  transition: width 0.4s ease;
}

.account-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.account-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.account-step-node.is-completed .account-step-circle {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.account-step-node.is-active .account-step-circle {
  background: #fff;
  border-color: #0f766e;
  color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.18);
}

.account-step-label {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}

.account-step-node.is-active .account-step-label {
  color: #0f766e;
}

/* Address Cards Grid */
.account-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-address-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius-lg);
  background: var(--account-card-bg);
  box-shadow: var(--account-shadow-sm);
  transition: all 0.2s ease;
}

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

.account-address-card.is-default {
  border-color: #0f766e;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: inset 4px 0 0 #0f766e, var(--account-shadow-sm);
}

/* Wishlist Cards Grid */
.account-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.account-wishlist-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius-lg);
  background: var(--account-card-bg);
  box-shadow: var(--account-shadow-sm);
  transition: all 0.2s ease;
}

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

.account-wishlist-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
  aspect-ratio: 4 / 3;
}

.account-wishlist-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.account-wishlist-card:hover .account-wishlist-media img {
  transform: scale(1.04);
}

/* Form Styles */
.account-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(130px, 1fr)) repeat(2, minmax(130px, 1fr)) minmax(160px, auto);
  gap: 0.75rem;
  align-items: flex-end;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-form-grid--wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-form .form-label {
  margin-bottom: 0.3rem;
  color: var(--account-heading);
  font-size: 0.78rem;
  font-weight: 700;
}

.account-form .form-control,
.account-form .form-select {
  min-height: 40px;
  border: 1px solid var(--account-border);
  border-radius: 10px;
  color: var(--account-ink);
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-form .form-control:focus,
.account-form .form-select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* Empty State */
.account-empty {
  padding: 2.5rem 1.5rem;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--account-radius-lg);
  background: #ffffff;
  text-align: center;
}

.account-empty h2,
.account-empty h3 {
  margin: 0.5rem 0 0.3rem;
  color: var(--account-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.account-empty p {
  margin: 0 0 1rem;
  color: var(--account-muted);
  font-size: 0.82rem;
}

.wallet-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wallet-preset-chip {
  border: 1px solid var(--account-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--account-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-preset-chip:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}

.print-invoice-page {
  margin: 0;
  background: #eef2f7;
  color: #111827;
  font: 11px/1.35 "Segoe UI", Arial, sans-serif;
}

.print-invoice-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px;
}

.print-invoice-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.print-invoice-sheet {
  border: 1px solid #111827;
  background: #fff;
}

.print-invoice-strip,
.print-invoice-grid,
.print-invoice-parties,
.print-invoice-footer {
  display: grid;
}

.print-invoice-strip {
  grid-template-columns: 1fr auto;
  padding: 0.38rem 0.5rem;
  border-bottom: 1px solid #111827;
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-invoice-grid {
  grid-template-columns: minmax(0, 1fr) 250px;
  border-bottom: 1px solid #111827;
}

.print-invoice-parties,
.print-invoice-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #111827;
}

.print-invoice-box {
  padding: 0.58rem;
  border-right: 1px solid #111827;
}

.print-invoice-box:last-child {
  border-right: 0;
}

.print-invoice-box h1,
.print-invoice-box h2 {
  margin: 0 0 0.28rem;
  font-size: 0.95rem;
}

.print-invoice-box p {
  margin: 0;
  color: #475569;
}

.print-invoice-meta > div,
.print-invoice-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid #dbe3ee;
}

.print-invoice-meta > div:last-child,
.print-invoice-summary > div:last-child {
  border-bottom: 0;
}

.print-invoice-items {
  width: 100%;
  border-collapse: collapse;
}

.print-invoice-items th,
.print-invoice-items td {
  padding: 0.38rem 0.45rem;
  border-bottom: 1px solid #dbe3ee;
  text-align: left;
  vertical-align: top;
}

.print-invoice-items th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .account-grid-4,
  .account-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar-pro {
    position: static;
  }

  .account-nav-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-grid-3,
  .account-grid-4,
  .account-address-grid,
  .account-order-grid,
  .account-wishlist-grid {
    grid-template-columns: 1fr;
  }

  .account-filter-bar,
  .account-form-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .account-layout {
    gap: 0.75rem;
  }

  .account-page-head,
  .account-card__body {
    padding: 0.78rem;
  }

  .account-head-actions,
  .account-head-actions .btn,
  .account-actions-row .btn,
  .account-actions-row form {
    width: 100%;
  }

  .account-quick-actions,
  .account-grid-2,
  .account-filter-bar,
  .account-form-grid,
  .account-form-grid--wide {
    grid-template-columns: 1fr;
  }

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

  .account-nav-link,
  .account-nav-form button {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .account-list-row {
    grid-template-columns: 1fr;
  }

  .account-table,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
    width: 100%;
  }

  .account-table thead {
    display: none;
  }

  .account-table tr {
    margin-bottom: 0.6rem;
    border: 1px solid var(--account-border);
    border-radius: 14px;
    overflow: hidden;
  }

  .account-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eef2f7;
  }

  .account-table td::before {
    content: attr(data-label);
    color: var(--account-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .print-invoice-grid,
  .print-invoice-parties,
  .print-invoice-footer {
    grid-template-columns: 1fr;
  }

  .print-invoice-box {
    border-right: 0;
    border-bottom: 1px solid #111827;
  }

  .print-invoice-box:last-child {
    border-bottom: 0;
  }
}

@media print {
  .print-invoice-page {
    background: #fff !important;
    color: #000;
    font-size: 10pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-invoice-shell {
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .print-invoice-toolbar {
    display: none;
  }

  .print-invoice-sheet {
    border-color: #000;
  }

  .print-invoice-strip,
  .print-invoice-items th {
    background: #fff !important;
  }
}

/* ==========================================================================
   MATRIX ENTERPRISE STOREFRONT UPGRADE EXTENSIONS
   Full dark/light mode parity, cockpits, checkout, cart & policy styles
   ========================================================================== */

/* Breadcrumbs */
.matrix-topbar-breadcrumb .breadcrumb {
  font-size: 12.5px;
  font-weight: 500;
}
.matrix-topbar-breadcrumb .breadcrumb-item a {
  color: var(--store-text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.matrix-topbar-breadcrumb .breadcrumb-item a:hover {
  color: var(--store-primary);
}
.matrix-topbar-breadcrumb .breadcrumb-item.active {
  color: var(--store-text);
  font-weight: 600;
}
.matrix-topbar-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--store-text-muted);
}

/* Line clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* High-Density Card & Table overrides */
.matrix-cart-cockpit .card,
.matrix-checkout-cockpit .card,
.matrix-payment-cockpit .card,
.matrix-confirmation-cockpit .card,
.matrix-product-cockpit .card {
  border-color: var(--store-border) !important;
  border-radius: 8px;
}

/* Checkout Address & Payment Option Cards */
.checkout-address-option,
.checkout-payment-option {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
}
.checkout-address-option input,
.checkout-payment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkout-address-option span,
.checkout-payment-option span {
  display: flex;
  transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid var(--store-border) !important;
  border-radius: 8px;
  background-color: var(--store-surface);
}
.checkout-address-option:hover span,
.checkout-payment-option:hover span {
  border-color: var(--store-primary) !important;
  box-shadow: 0 4px 12px rgba(30, 100, 184, 0.08);
}
.checkout-address-option input:checked + span,
.checkout-payment-option input:checked + span {
  border-color: var(--store-primary) !important;
  background-color: var(--store-primary-light) !important;
  box-shadow: 0 0 0 1px var(--store-primary);
}

/* Stepper input inside cart */
[data-qty-stepper] input[type="number"]::-webkit-inner-spin-button,
[data-qty-stepper] input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
[data-qty-stepper] input[type="number"] {
  -moz-appearance: textfield;
}

/* Dark Mode Comprehensive Overrides for Storefront */
[data-bs-theme="dark"] .bg-body {
  background-color: #111827 !important;
  color: #f1f5f9 !important;
}
[data-bs-theme="dark"] .bg-body-tertiary {
  background-color: #162032 !important;
}
[data-bs-theme="dark"] .card {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #f1f5f9 !important;
}
[data-bs-theme="dark"] .card-header {
  border-bottom-color: #1f2937 !important;
}
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
  border-color: #1f2937 !important;
}
[data-bs-theme="dark"] .text-dark-emphasis {
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #f1f5f9;
  --bs-table-border-color: #1f2937;
}
[data-bs-theme="dark"] .table-light {
  background-color: #1a2234 !important;
  color: #f8fafc !important;
  border-color: #1f2937 !important;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #111827 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}
[data-bs-theme="dark"] .btn-outline-secondary {
  color: #cbd5e1 !important;
  border-color: #374151 !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #1e293b !important;
  border-color: #4b5563 !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .account-hero-card,
[data-bs-theme="dark"] .account-section-card,
[data-bs-theme="dark"] .policy-card,
[data-bs-theme="dark"] .policy-highlight-card,
[data-bs-theme="dark"] .contact-channel-card,
[data-bs-theme="dark"] .policy-link-card,
[data-bs-theme="dark"] .store-section-card {
  background: #111827 !important;
  border-color: #1f2937 !important;
  color: #f1f5f9 !important;
}
[data-bs-theme="dark"] .badge.bg-light {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #374151 !important;
}

[data-bs-theme="dark"] .btn-light {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #374151 !important;
}

[data-bs-theme="dark"] .btn-light:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
  border-color: #4b5563 !important;
}

/* Dark Mode Overrides for Account Portal */
[data-bs-theme="dark"] .account-sidebar-card,
[data-bs-theme="dark"] .account-card,
[data-bs-theme="dark"] .account-stat,
[data-bs-theme="dark"] .account-page-head {
  background: #111827 !important;
  border-color: #1f2937 !important;
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .account-sidebar-head {
  background: #162032 !important;
  border-bottom-color: #1f2937 !important;
}

[data-bs-theme="dark"] .account-sidebar-note {
  background: #162032 !important;
  border-top-color: #1f2937 !important;
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .account-card__head {
  border-bottom-color: #1f2937 !important;
}

[data-bs-theme="dark"] .account-action-tile {
  background: #162032 !important;
  border-color: #1f2937 !important;
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .account-action-tile:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

[data-bs-theme="dark"] .account-action-tile-icon {
  background: #111827 !important;
  border-color: #1f2937 !important;
  color: #3b82f6 !important;
}

[data-bs-theme="dark"] .account-nav-link,
[data-bs-theme="dark"] .account-nav-form button {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .account-nav-link:hover,
[data-bs-theme="dark"] .account-nav-form button:hover {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

/* ==========================================================================
   MATRIX COSEC CUSTOMER PORTAL STYLING & SIDEBAR
   ========================================================================== */

/* Customer Account Matrix Sidebar */
.account-sidebar-matrix {
  background-color: #ffffff;
  border: 1px solid #dcdfe4;
  border-top: 2.5px solid #1e64b8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.account-sidebar-matrix .matrix-sidebar-header {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  padding: 0 14px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border-bottom: 1px solid #dcdfe4;
}

.account-sidebar-matrix .matrix-sidebar-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-sidebar-matrix .matrix-sidebar-header__avatar {
  width: 34px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-sidebar-matrix .matrix-sidebar-header__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.1px;
}

.account-sidebar-matrix .matrix-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background-color: #ffffff;
  border-bottom: 1px solid #eef2f6;
}

.account-sidebar-matrix .matrix-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e64b8, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  position: relative;
}

.account-sidebar-matrix .matrix-user-online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid #ffffff;
}

.account-sidebar-matrix .matrix-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.account-sidebar-matrix .matrix-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #059669;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: 999px;
  margin-top: 2px;
}

/* Nav links in account matrix sidebar */
.account-sidebar-matrix .matrix-sidebar-nav {
  display: flex;
  flex-direction: column;
}

.account-sidebar-matrix .matrix-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  font-size: 12.5px;
  color: #4b5563;
  text-decoration: none;
  background-color: #fafbfc;
  border-bottom: 1px solid #e5e7eb;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.account-sidebar-matrix .matrix-nav-link:hover {
  background-color: #f1f5f9;
  color: #1e64b8;
}

.account-sidebar-matrix .matrix-nav-link.is-active {
  background-color: #eff6ff;
  color: #1e64b8;
  font-weight: 600;
  border-left-color: #1e64b8;
}

.account-sidebar-matrix .matrix-nav-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-sidebar-matrix .matrix-nav-icon {
  font-size: 14px;
  color: #64748b;
  width: 16px;
  text-align: center;
}

.account-sidebar-matrix .matrix-nav-link.is-active .matrix-nav-icon {
  color: #1e64b8;
}

.account-sidebar-matrix .matrix-nav-chevron {
  font-size: 10px;
  color: #94a3b8;
}

.account-sidebar-matrix .matrix-nav-logout-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  font-size: 12.5px;
  color: #dc2626;
  background: #fafbfc;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.account-sidebar-matrix .matrix-nav-logout-btn:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Sidebar Footer */
.account-sidebar-matrix .matrix-sidebar-footer {
  padding: 8px 12px;
  background-color: #e5e8ed;
  border-top: 1px solid #cbd1d8;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  letter-spacing: 0.25px;
}

/* Matrix Action Tiles */
.matrix-action-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.matrix-action-tile:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.matrix-action-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.matrix-action-tile strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.matrix-action-tile span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}

/* Matrix Order Card Item */
.matrix-order-item {
  padding: 10px 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.matrix-order-item:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

/* ==========================================================================
   GLOBAL DARK MODE OVERRIDES FOR MATRIX PORTAL
   ========================================================================== */
[data-bs-theme="dark"] .matrix-cockpit-banner,
[data-bs-theme="dark"] .matrix-telemetry-card,
[data-bs-theme="dark"] .matrix-panel,
[data-bs-theme="dark"] .account-sidebar-matrix {
  background-color: #1a222d !important;
  border-color: #2c3848 !important;
}

[data-bs-theme="dark"] .matrix-panel-header,
[data-bs-theme="dark"] .matrix-cockpit-status-card,
[data-bs-theme="dark"] .account-sidebar-matrix .matrix-sidebar-header {
  background-color: #202937 !important;
  border-color: #2c3848 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-sidebar-header__title,
[data-bs-theme="dark"] .matrix-cockpit-title,
[data-bs-theme="dark"] .matrix-telemetry-value,
[data-bs-theme="dark"] .matrix-panel-title,
[data-bs-theme="dark"] .matrix-action-tile strong,
[data-bs-theme="dark"] .account-sidebar-matrix .matrix-user-name {
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .matrix-cockpit-subtitle,
[data-bs-theme="dark"] .matrix-cockpit-desc,
[data-bs-theme="dark"] .matrix-telemetry-tag,
[data-bs-theme="dark"] .matrix-footer-stat,
[data-bs-theme="dark"] .matrix-action-tile span {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-sidebar-user {
  background-color: #1a222d !important;
  border-bottom-color: #2c3848 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-user-online {
  border-color: #1a222d !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-user-badge {
  background-color: rgba(5, 150, 105, 0.15) !important;
  border-color: rgba(5, 150, 105, 0.3) !important;
  color: #34d399 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-nav-link {
  background-color: #1a222d !important;
  color: #cbd5e1 !important;
  border-bottom-color: #243044 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-nav-link:hover {
  background-color: #222d3d !important;
  color: #60a5fa !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-nav-link.is-active {
  background-color: #1e293b !important;
  color: #60a5fa !important;
  border-left-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-nav-link.is-active .matrix-nav-icon {
  color: #60a5fa !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-nav-logout-btn {
  background-color: #1a222d !important;
  border-bottom-color: #243044 !important;
  color: #f87171 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-nav-logout-btn:hover {
  background-color: rgba(220, 38, 38, 0.12) !important;
  color: #fca5a5 !important;
}

[data-bs-theme="dark"] .account-sidebar-matrix .matrix-sidebar-footer {
  background-color: #161e2e !important;
  border-top-color: #2c3848 !important;
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .matrix-action-tile {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] .matrix-action-tile:hover {
  background-color: #24334a !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .matrix-action-btn--secondary {
  background-color: #222d3d !important;
  border-color: #334155 !important;
  color: #93c5fd !important;
}

[data-bs-theme="dark"] .matrix-action-btn--secondary:hover {
  background-color: #2b394e !important;
  border-color: #3b82f6 !important;
  color: #bfdbfe !important;
}

[data-bs-theme="dark"] .matrix-order-item {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] .matrix-order-item:hover {
  background-color: #24334a !important;
  border-color: #475569 !important;
}

[data-bs-theme="dark"] .matrix-telemetry-code {
  background-color: #202937 !important;
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .matrix-chip-outline {
  background-color: rgba(30, 100, 184, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #93c5fd !important;
}

[data-bs-theme="dark"] .matrix-badge-amber {
  background-color: rgba(217, 119, 6, 0.2) !important;
  color: #fbbf24 !important;
}

[data-bs-theme="dark"] .matrix-badge-blue {
  background-color: rgba(30, 100, 184, 0.2) !important;
  color: #93c5fd !important;
}

[data-bs-theme="dark"] .matrix-badge-green {
  background-color: rgba(5, 150, 105, 0.2) !important;
  color: #34d399 !important;
}

[data-bs-theme="dark"] .matrix-badge-purple {
  background-color: rgba(124, 58, 237, 0.2) !important;
  color: #c084fc !important;
}

/* ==========================================================================
   Catalog Product Card - Compact Matrix Architecture
   ========================================================================== */
.storefront-product-card {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.storefront-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
  border-color: #1e64b8 !important;
}

.storefront-product-card .store-product-card__media {
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 165px !important;
  max-height: 165px !important;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.storefront-product-card .store-product-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.storefront-product-card .store-product-card__img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.22s ease;
}

.storefront-product-card:hover .store-product-card__img {
  transform: scale(1.05);
}

.storefront-product-card .card-body {
  padding: 8px 10px !important;
}

/* Grid Density Modes for Catalog */
#catalogProductGrid.catalog-density-compact > .catalog-product-grid-col {
  flex: 0 0 auto !important;
  width: 16.666667% !important;
  max-width: 225px !important;
}

@media (max-width: 1399.98px) {
  #catalogProductGrid.catalog-density-compact > .catalog-product-grid-col {
    width: 20% !important;
    max-width: 220px !important;
  }
}

@media (max-width: 1199.98px) {
  #catalogProductGrid.catalog-density-compact > .catalog-product-grid-col {
    width: 25% !important;
    max-width: none !important;
  }
}

@media (max-width: 991.98px) {
  #catalogProductGrid.catalog-density-compact > .catalog-product-grid-col {
    width: 33.333333% !important;
    max-width: none !important;
  }
}

@media (max-width: 575.98px) {
  #catalogProductGrid.catalog-density-compact > .catalog-product-grid-col {
    width: 50% !important;
    max-width: none !important;
  }
  .storefront-product-card .store-product-card__media {
    height: 135px !important;
    max-height: 135px !important;
  }
}

/* Standard Density Mode */
#catalogProductGrid.catalog-density-standard > .catalog-product-grid-col {
  flex: 0 0 auto !important;
  width: 25% !important;
  max-width: 320px !important;
}

#catalogProductGrid.catalog-density-standard .storefront-product-card .store-product-card__media {
  height: 220px !important;
  max-height: 220px !important;
}

@media (max-width: 1199.98px) {
  #catalogProductGrid.catalog-density-standard > .catalog-product-grid-col {
    width: 33.333333% !important;
  }
}

@media (max-width: 767.98px) {
  #catalogProductGrid.catalog-density-standard > .catalog-product-grid-col {
    width: 50% !important;
  }
  #catalogProductGrid.catalog-density-standard .storefront-product-card .store-product-card__media {
    height: 165px !important;
    max-height: 165px !important;
  }
}

/* List Density Mode */
#catalogProductGrid.catalog-density-list > .catalog-product-grid-col {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

#catalogProductGrid.catalog-density-list .storefront-product-card {
  flex-direction: row !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

#catalogProductGrid.catalog-density-list .store-product-card__media {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  height: auto !important;
  min-height: 140px !important;
  max-height: none !important;
  flex: 0 0 130px !important;
  position: relative !important;
  overflow: hidden !important;
}

#catalogProductGrid.catalog-density-list .store-product-card__media .top-0.end-0 {
  right: auto !important;
  left: 6px !important;
  top: 6px !important;
}

#catalogProductGrid.catalog-density-list .store-product-card__hover-bar {
  display: none !important;
}

#catalogProductGrid.catalog-density-list .card-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 10px 14px !important;
}

@media (max-width: 575.98px) {
  #catalogProductGrid.catalog-density-list .store-product-card__media {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    flex: 0 0 110px !important;
    min-height: 120px !important;
  }
  #catalogProductGrid.catalog-density-list .card-body {
    padding: 8px 10px !important;
  }
}

/* Dark Mode Overrides for Product Cards */
[data-bs-theme="dark"] .storefront-product-card,
html.dark .storefront-product-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] .storefront-product-card:hover,
html.dark .storefront-product-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .storefront-product-card .store-product-card__media,
html.dark .storefront-product-card .store-product-card__media {
  background-color: #0f172a !important;
}

[data-bs-theme="dark"] .storefront-product-card__title a,
html.dark .storefront-product-card__title a {
  color: #f1f5f9 !important;
}

/* Hover Quick Actions Bar */
.store-product-card__hover-bar {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.storefront-product-card:hover .store-product-card__hover-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.matrix-quickview-btn {
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.matrix-quickview-btn:hover {
  transform: scale(1.04);
  background-color: #1e64b8 !important;
  color: #ffffff !important;
  border-color: #1e64b8 !important;
}

.matrix-quickview-btn:hover i {
  color: #ffffff !important;
}

.matrix-quick-share-btn {
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.matrix-quick-share-btn:hover {
  transform: scale(1.08);
  background-color: #f1f5f9;
}

/* Quick View Modal Matrix Styles */
.matrix-quickview-media {
  border-color: #e2e8f0;
  background-color: #f8fafc;
}

[data-bs-theme="dark"] .matrix-quickview-media {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] .modal-content {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .modal-header {
  border-color: #334155 !important;
  background-color: #162032 !important;
}

/* Toast Matrix Styling */
#catalogToast {
  border-radius: 8px;
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
}

/* ==========================================================================
   ENTERPRISE STOREFRONT PRODUCT DETAILS (PDP) - COMPACT & MOBILE OPTIMIZED
   ========================================================================== */

.pdp-wrapper {
  color: var(--store-text);
  padding-bottom: 2rem;
}

@media (max-width: 991.98px) {
  .pdp-wrapper {
    padding-bottom: 7.5rem; /* Space for mobile sticky buy bar + bottom nav */
  }
}

.pdp-main-container {
  max-width: 1140px;
  margin: 0 auto;
}

.pdp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0.3rem;
  font-size: 0.76rem;
  color: var(--store-text-muted);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pdp-breadcrumb::-webkit-scrollbar {
  display: none;
}

.pdp-breadcrumb a {
  color: var(--store-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.pdp-breadcrumb .separator {
  opacity: 0.45;
  font-size: 0.65rem;
}

.pdp-card {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease;
}

[data-bs-theme="dark"] .pdp-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Compact Gallery Viewport */
.pdp-gallery-main {
  position: relative;
  width: 100%;
  max-height: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .pdp-gallery-main {
    max-height: 290px;
  }
}

[data-bs-theme="dark"] .pdp-gallery-main {
  background: #0b0f19;
  border-color: #1f2937;
}

.pdp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.pdp-gallery-main:hover img {
  transform: scale(1.04);
}

.pdp-badge-stack {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 3;
}

.pdp-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pdp-badge-discount {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
}

.pdp-badge-featured {
  background: linear-gradient(135deg, #1e64b8, #3b82f6);
  color: #ffffff;
}

.pdp-badge-lowstock {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.pdp-gallery-zoom-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--store-border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  color: var(--store-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 3;
}

[data-bs-theme="dark"] .pdp-gallery-zoom-btn {
  background: rgba(17, 24, 39, 0.88);
  border-color: #374151;
  color: #f8fafc;
}

.pdp-gallery-zoom-btn:hover {
  transform: scale(1.08);
  background: var(--store-primary);
  color: #ffffff;
}

/* Compact Thumbnails */
.pdp-thumbs-track {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.pdp-thumb-item {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 0.5rem;
  border: 1.5px solid var(--store-border);
  background: var(--store-surface-muted);
  overflow: hidden;
  padding: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

[data-bs-theme="dark"] .pdp-thumb-item {
  background: #0b0f19;
  border-color: #1f2937;
}

.pdp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.35rem;
}

.pdp-thumb-item.is-active {
  border-color: var(--store-primary);
  box-shadow: 0 0 0 2px rgba(30, 100, 184, 0.25);
}

[data-bs-theme="dark"] .pdp-thumb-item.is-active {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

/* Compact Trust Grid */
.pdp-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

@media (min-width: 768px) {
  .pdp-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pdp-trust-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
}

[data-bs-theme="dark"] .pdp-trust-card {
  background: #0f172a;
  border-color: #1f2937;
}

.pdp-trust-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.pdp-trust-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--store-text);
  line-height: 1.15;
}

.pdp-trust-desc {
  font-size: 0.62rem;
  color: var(--store-text-muted);
  line-height: 1.1;
}

/* Compact Product Info */
.pdp-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pdp-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.48rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
  color: var(--store-text);
}

[data-bs-theme="dark"] .pdp-pill {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.pdp-pill-primary {
  background: var(--store-primary-light);
  border-color: rgba(30, 100, 184, 0.2);
  color: var(--store-primary);
}

[data-bs-theme="dark"] .pdp-pill-primary {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.pdp-title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 750;
  color: var(--store-text);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

/* Compact Rating Bar Header */
.pdp-rating-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.pdp-rating-stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 1.5px;
  font-size: 0.8rem;
}

.pdp-rating-score {
  font-weight: 700;
  color: var(--store-text);
}

.pdp-rating-link {
  color: var(--store-primary);
  text-decoration: none;
  font-size: 0.74rem;
}

.pdp-rating-link:hover {
  text-decoration: underline;
}

/* Compact Price Panel */
.pdp-price-box {
  background: linear-gradient(135deg, var(--store-surface-muted) 0%, rgba(30, 100, 184, 0.04) 100%);
  border: 1px solid var(--store-border);
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
}

[data-bs-theme="dark"] .pdp-price-box {
  background: linear-gradient(135deg, #0f172a 0%, rgba(59, 130, 246, 0.08) 100%);
  border-color: #1f2937;
}

.pdp-price-current {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--store-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (max-width: 575.98px) {
  .pdp-price-current {
    font-size: 1.45rem;
  }
}

[data-bs-theme="dark"] .pdp-price-current {
  color: #60a5fa;
}

.pdp-price-original {
  font-size: 0.95rem;
  color: var(--store-text-muted);
  text-decoration: line-through;
}

.pdp-price-save-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 9999px;
}

.pdp-tax-note {
  font-size: 0.7rem;
  color: var(--store-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

/* Stock Urgency */
.pdp-stock-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.pdp-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.pdp-pulse-dot.in-stock {
  background-color: #10b981;
}

.pdp-pulse-dot.low-stock {
  background-color: #f59e0b;
}

/* Compact Actions & Buy Box */
.pdp-buy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdp-action-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}

.pdp-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--store-border);
  border-radius: 0.6rem;
  background: var(--store-surface);
  overflow: hidden;
  height: 38px;
  min-width: 96px;
  width: 96px;
  flex-shrink: 0;
}

[data-bs-theme="dark"] .pdp-qty-stepper {
  background: #0f172a;
  border-color: #374151;
}

.pdp-qty-btn {
  width: 30px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--store-text);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pdp-qty-btn:hover {
  background: var(--store-surface-muted);
  color: var(--store-primary);
}

.pdp-qty-input {
  width: 36px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--store-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-btn-cart {
  height: 38px;
  width: 100%;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--store-primary);
  border: 1px solid var(--store-primary);
  color: #ffffff;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pdp-btn-cart:hover {
  background: var(--store-primary-hover);
  color: #ffffff;
}

.pdp-btn-buynow {
  height: 38px;
  width: 100%;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #059669;
  color: #ffffff;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pdp-btn-buynow:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.pdp-btn-secondary {
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--store-border);
  background: var(--store-surface);
  color: var(--store-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-bs-theme="dark"] .pdp-btn-secondary {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.pdp-btn-secondary:hover {
  border-color: var(--store-primary);
  color: var(--store-primary);
}

/* Compact Pincode Box */
.pdp-pincode-card {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--store-surface-muted);
  border: 1px dashed var(--store-border);
}

[data-bs-theme="dark"] .pdp-pincode-card {
  background: #0f172a;
  border-color: #334155;
}

.pdp-pincode-input-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pdp-pincode-input {
  height: 32px;
  border-radius: 0.45rem;
  border: 1px solid var(--store-border);
  background: var(--store-surface);
  color: var(--store-text);
  padding: 0 0.6rem;
  font-size: 0.78rem;
  outline: none;
  width: 120px;
}

[data-bs-theme="dark"] .pdp-pincode-input {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.pdp-pincode-btn {
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--store-primary);
  border: none;
  color: #ffffff;
  cursor: pointer;
}

/* Compact Tabs Section */
.pdp-nav-tabs {
  border-bottom: 1.5px solid var(--store-border);
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pdp-nav-tabs::-webkit-scrollbar {
  display: none;
}

.pdp-nav-tab {
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--store-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pdp-nav-tab:hover {
  color: var(--store-primary);
}

.pdp-nav-tab.active {
  color: var(--store-primary);
  border-bottom-color: var(--store-primary);
}

[data-bs-theme="dark"] .pdp-nav-tab.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

/* Compact Spec Table */
.pdp-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--store-border);
}

.pdp-spec-table th,
.pdp-spec-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--store-border);
}

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

.pdp-spec-table th {
  width: 35%;
  background: var(--store-surface-muted);
  color: var(--store-text-muted);
  font-weight: 600;
}

[data-bs-theme="dark"] .pdp-spec-table th {
  background: #0f172a;
}

.pdp-spec-table td {
  background: var(--store-surface);
  color: var(--store-text);
  font-weight: 600;
}

[data-bs-theme="dark"] .pdp-spec-table td {
  background: #111827;
}

/* Compact Review Scorecard */
.pdp-review-scorecard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
  text-align: center;
}

[data-bs-theme="dark"] .pdp-review-scorecard {
  background: #0f172a;
  border-color: #1f2937;
}

.pdp-score-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--store-text);
  line-height: 1;
}

/* Compact Review Card */
.pdp-review-card {
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
}

[data-bs-theme="dark"] .pdp-review-card {
  background: #0f172a;
  border-color: #1f2937;
}

.pdp-review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--store-primary), #3b82f6);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   MOBILE STICKY BUY BAR (< 992px)
   ========================================================================== */
.pdp-mobile-sticky-bar {
  display: none;
}

@media (max-width: 991.98px) {
  .pdp-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 1035;
    background: var(--store-surface);
    border-top: 1px solid var(--store-border);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
    padding: 0.45rem 0.75rem;
    align-items: center;
    gap: 0.5rem;
  }

  [data-bs-theme="dark"] .pdp-mobile-sticky-bar {
    background: #111827;
    border-top-color: #1f2937;
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.4);
  }

  .pdp-mobile-bar-price {
    display: flex;
    flex-direction: column;
    min-width: 80px;
  }

  .pdp-mobile-bar-price strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--store-primary);
    line-height: 1.1;
  }

  [data-bs-theme="dark"] .pdp-mobile-bar-price strong {
    color: #60a5fa;
  }

  .pdp-mobile-bar-price small {
    font-size: 0.62rem;
    color: var(--store-text-muted);
    text-decoration: line-through;
  }

  .pdp-mobile-bar-actions {
    display: flex;
    flex: 1;
    gap: 0.4rem;
  }

  .pdp-mobile-bar-actions .btn {
    flex: 1;
    height: 38px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
  }
}

/* ==========================================================================
   MOBILE CATALOG INDEX ENHANCEMENTS (< 992px)
   ========================================================================== */

/* Bottom padding to avoid overlapping the 64px mobile dock */
@media (max-width: 991.98px) {
  .matrix-catalog-shell {
    padding-bottom: 5.5rem !important;
  }
}

/* Category Horizontal Swipeable Pills */
.catalog-category-pills-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.catalog-category-pills-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.catalog-category-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding-bottom: 4px;
}

.catalog-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  color: var(--store-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.catalog-category-pill:hover {
  border-color: var(--store-primary);
  color: var(--store-primary);
}

.catalog-category-pill.active {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(30, 100, 184, 0.3);
}

.catalog-category-pill .catalog-category-count {
  font-size: 0.65rem;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.07);
  padding: 1px 5px;
  border-radius: 9999px;
}

.catalog-category-pill.active .catalog-category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

[data-bs-theme="dark"] .catalog-category-pill {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .catalog-category-pill:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

[data-bs-theme="dark"] .catalog-category-pill.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

[data-bs-theme="dark"] .catalog-category-pill .catalog-category-count {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Mobile Quick Toolbar */
.catalog-mobile-toolbar {
  border-radius: 0.65rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="dark"] .catalog-mobile-toolbar {
  background: #111827 !important;
  border-color: #1f2937 !important;
}

/* Offcanvas Drawer Enhancements */
#catalogFilterSheet.offcanvas {
  max-width: 340px;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

[data-bs-theme="dark"] #catalogFilterSheet.offcanvas {
  background: #111827;
  color: #f1f5f9;
}

.catalog-filter-mobile-sticky-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--store-surface);
  border-top: 1px solid var(--store-border);
  padding: 0.75rem 1rem;
  margin: 1rem -1rem -1rem -1rem;
  z-index: 10;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .catalog-filter-mobile-sticky-footer {
  background: #111827;
  border-top-color: #1f2937;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.35);
}

/* Product Card Actions on Small Mobile (< 576px) */
@media (max-width: 575.98px) {
  .storefront-product-card__actions {
    gap: 3px !important;
  }
  .storefront-product-card__actions .btn {
    height: 28px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
  }
  .storefront-product-card__actions .matrix-quickview-btn,
  .storefront-product-card__actions a.btn {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }
}

/* ==========================================================================
   CART PAGE MODERN COMPACT & MOBILE STYLES (< 992px)
   ========================================================================== */

/* Avoid collision with mobile dock (64px) + sticky checkout bar (56px) */
@media (max-width: 991.98px) {
  .matrix-cart-cockpit {
    padding-bottom: 8rem !important;
  }
}

/* Compact Cart Stepper */
.cart-stepper-compact {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--store-border);
  border-radius: 6px;
  background: var(--store-surface);
  overflow: hidden;
  height: 28px;
}

[data-bs-theme="dark"] .cart-stepper-compact {
  background: #1e293b;
  border-color: #334155;
}

.cart-stepper-btn {
  background: transparent;
  border: none;
  color: var(--store-text);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0;
}

.cart-stepper-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .cart-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cart-stepper-input {
  width: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--store-text);
  padding: 0;
  -moz-appearance: textfield;
}

.cart-stepper-input::-webkit-outer-spin-button,
.cart-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Mobile Sticky Bottom Checkout Bar (< 992px) */
.cart-mobile-sticky-bar {
  display: flex;
  position: fixed;
  bottom: 64px; /* Directly above 64px store-mobile-dock */
  left: 0;
  right: 0;
  z-index: 1035;
  background: var(--store-surface);
  border-top: 1px solid var(--store-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

[data-bs-theme="dark"] .cart-mobile-sticky-bar {
  background: #111827;
  border-top-color: #1f2937;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.cart-mobile-sticky-price {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.cart-mobile-label {
  font-size: 10px;
  color: var(--store-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.cart-mobile-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--store-primary);
  line-height: 1.2;
}

[data-bs-theme="dark"] .cart-mobile-amount {
  color: #60a5fa;
}

.cart-mobile-sticky-action {
  flex: 1;
}

.cart-mobile-sticky-action .btn {
  height: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 0.5rem;
}

/* ==========================================================================
   CHECKOUT PAGE COMPACT & MOBILE STYLES (< 992px)
   ========================================================================== */

/* Prevent collision with mobile dock (64px) + sticky place order bar (58px) */
@media (max-width: 991.98px) {
  .matrix-checkout-cockpit {
    padding-bottom: 8.5rem !important;
  }
}

/* Mobile Sticky Bottom Place Order Bar (< 992px) */
.checkout-mobile-sticky-bar {
  display: flex;
  position: fixed;
  bottom: 64px; /* Directly above 64px store-mobile-dock */
  left: 0;
  right: 0;
  z-index: 1035;
  background: var(--store-surface);
  border-top: 1px solid var(--store-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

[data-bs-theme="dark"] .checkout-mobile-sticky-bar {
  background: #111827;
  border-top-color: #1f2937;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.checkout-mobile-sticky-price {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.checkout-mobile-label {
  font-size: 10px;
  color: var(--store-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.checkout-mobile-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--store-primary);
  line-height: 1.2;
}

[data-bs-theme="dark"] .checkout-mobile-amount {
  color: #60a5fa;
}

.checkout-mobile-sticky-action {
  flex: 1;
}

.checkout-mobile-sticky-action .btn {
  height: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 0.5rem;
}

/* Payment Cockpit Compact Enhancements */
@media (max-width: 991.98px) {
  .matrix-payment-cockpit {
    padding-bottom: 5.5rem !important;
  }
}

.matrix-payment-cockpit .card {
  border-radius: 12px;
  border: 1px solid var(--store-border, rgba(0, 0, 0, 0.08)) !important;
  transition: box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .matrix-payment-cockpit .card {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
}

[data-bs-theme="dark"] .matrix-payment-cockpit .bg-body-tertiary {
  background-color: #1a2234 !important;
}

[data-bs-theme="dark"] .matrix-payment-cockpit .border-light-subtle {
  border-color: #1f2937 !important;
}

/* Home Cockpit Mobile & Compact Enhancements */
@media (max-width: 991.98px) {
  .matrix-cockpit-shell {
    padding-bottom: 5.5rem !important;
  }
}

/* Mobile Hero Banner Aspect & Sizing */
@media (max-width: 767.98px) {
  .hero-banner-slide {
    min-height: 180px !important;
    max-height: 220px !important;
  }
  .hero-banner-slide h2 {
    font-size: 1.1rem !important;
  }
  .hero-banner-slide p {
    font-size: 0.75rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Quick Action Touch Bar (Single Row 4 Items on Mobile) */
.home-quick-touch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  text-align: center;
  border-radius: 10px;
  padding: 0.5rem 0.25rem;
  transition: all 0.15s ease;
  background-color: var(--store-surface);
  border: 1px solid var(--store-border, rgba(0,0,0,0.06));
}

.home-quick-touch-item:hover,
.home-quick-touch-item:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.home-quick-touch-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.home-quick-touch-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--store-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Category Rail (Horizontal Scroll on Mobile, Grid on Desktop) */
.home-category-rail {
  display: flex;
  overflow-x: auto;
  gap: 0.65rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-category-rail::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .home-category-rail {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.home-category-pill {
  flex: 0 0 74px;
  max-width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
}

@media (min-width: 768px) {
  .home-category-pill {
    flex: auto;
    max-width: none;
  }
}

.home-category-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--store-border, rgba(0,0,0,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--store-surface);
  overflow: hidden;
  margin-bottom: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.home-category-pill:hover .home-category-avatar {
  transform: scale(1.06);
  border-color: var(--store-primary);
}

.home-category-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--store-text-main);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-category-count {
  font-size: 9.5px;
  color: var(--store-text-muted);
}

/* ==========================================================================
   ACCOUNT DASHBOARD COMPACT & MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991.98px) {
  .matrix-account-cockpit {
    padding-bottom: 5.5rem !important;
  }
  .account-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Mobile Account Top Bar */
.account-mobile-bar {
  background-color: var(--store-surface);
  border: 1px solid var(--store-border, rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  width: 100% !important;
}

.account-mobile-bar .matrix-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e64b8 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  flex-shrink: 0;
}

.account-mobile-bar .matrix-user-online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  border: 1.5px solid var(--store-surface);
}

[data-bs-theme="dark"] .account-mobile-bar {
  background-color: #111827;
  border-color: #1f2937;
}

.account-mobile-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.account-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.account-mobile-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none !important;
  white-space: nowrap;
  color: var(--store-text-main);
  background-color: var(--store-surface);
  border: 1px solid var(--store-border, rgba(0, 0, 0, 0.1));
  transition: all 0.15s ease;
}

.account-mobile-tab.is-active {
  background-color: var(--store-primary);
  border-color: var(--store-primary);
  color: #ffffff !important;
}

[data-bs-theme="dark"] .account-mobile-tab {
  background-color: #1a2234;
  border-color: #2c3848;
}

[data-bs-theme="dark"] .account-mobile-tab.is-active {
  background-color: var(--store-primary);
  border-color: var(--store-primary);
  color: #ffffff !important;
}

/* Compact Telemetry Cards Overrides */
.matrix-account-cockpit .matrix-telemetry-card {
  padding: 0.7rem 0.85rem !important;
  border-radius: 8px;
}

.matrix-account-cockpit .matrix-telemetry-header {
  margin-bottom: 0.3rem !important;
}

.matrix-account-cockpit .matrix-telemetry-tag {
  font-size: 0.68rem !important;
  letter-spacing: 0.05em;
}

.matrix-account-cockpit .matrix-telemetry-code {
  font-size: 0.62rem !important;
  padding: 1px 4px !important;
}

.matrix-account-cockpit .matrix-telemetry-value {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.matrix-account-cockpit .matrix-telemetry-sub {
  font-size: 0.72rem !important;
  margin-top: 0.25rem !important;
}

.matrix-account-cockpit .matrix-telemetry-footer {
  margin-top: 0.4rem !important;
  padding-top: 0.35rem !important;
  font-size: 0.72rem !important;
}

/* Compact Action Tiles */
.matrix-account-cockpit .matrix-action-tile {
  padding: 0.55rem 0.7rem !important;
  border-radius: 8px !important;
}

.matrix-account-cockpit .matrix-action-tile-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.95rem !important;
  border-radius: 8px !important;
  flex-shrink: 0;
}

.matrix-account-cockpit .matrix-action-tile strong {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

.matrix-account-cockpit .matrix-action-tile span {
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
}

/* Compact Panels & Headers */
.matrix-account-cockpit .matrix-panel {
  border-radius: 8px !important;
  border: 1px solid var(--store-border, rgba(0, 0, 0, 0.08)) !important;
}

.matrix-account-cockpit .matrix-panel-header {
  padding: 0.45rem 0.75rem !important;
  border-bottom: 1px solid var(--store-border, rgba(0, 0, 0, 0.08)) !important;
}

.matrix-account-cockpit .matrix-panel-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

.matrix-account-cockpit .matrix-chip-outline {
  font-size: 0.68rem !important;
  padding: 2px 7px !important;
}

/* Compact Order Items in Dashboard */
.matrix-account-cockpit .matrix-order-item {
  padding: 0.6rem 0.75rem !important;
  border-radius: 6px !important;
  border: 1px solid var(--store-border, rgba(0, 0, 0, 0.06)) !important;
}

.matrix-account-cockpit .matrix-status-pill {
  font-size: 0.68rem !important;
  padding: 2px 7px !important;
}

/* Compact Cockpit Banner in Account */
.matrix-account-cockpit .matrix-cockpit-banner {
  display: block !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
}

.matrix-account-cockpit .matrix-cockpit-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

.matrix-account-cockpit .matrix-cockpit-subtitle {
  font-size: 1.05rem !important;
}

.matrix-account-cockpit .matrix-cockpit-desc {
  font-size: 0.78rem !important;
}

@media (max-width: 767.98px) {
  .matrix-account-cockpit .matrix-cockpit-title {
    font-size: 1.1rem !important;
  }
  .matrix-account-cockpit .matrix-cockpit-subtitle {
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   COMPACT & MODERN ORDER DETAILS (ACCOUNT PORTAL)
   ========================================================================== */
.order-details-shell {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.order-details-card {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.order-details-card-header {
  padding: 0.55rem 0.85rem;
  background: var(--store-surface-muted);
  border-bottom: 1px solid var(--store-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-details-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--store-text);
}

.order-details-card-body {
  padding: 0.8rem 0.85rem;
}

/* Order Header Bar */
.order-header-banner {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.order-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.order-header-num-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.order-header-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--store-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.order-header-date {
  font-size: 0.75rem;
  color: var(--store-text-muted);
}

.order-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Status Badges */
.order-badge-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.order-badge--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.order-badge--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.order-badge--warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.order-badge--danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

[data-bs-theme="dark"] .order-badge--success {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-bs-theme="dark"] .order-badge--info {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

[data-bs-theme="dark"] .order-badge--warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

[data-bs-theme="dark"] .order-badge--danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

/* Sleek Stepper */
.order-stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0.6rem 0 0.2rem;
  padding: 0 0.5rem;
}

.order-stepper-track::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--store-border);
  z-index: 1;
}

.order-stepper-fill {
  position: absolute;
  top: 14px;
  left: 1.5rem;
  height: 2px;
  background: var(--store-primary);
  z-index: 2;
  transition: width 0.3s ease;
}

.order-step-point {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.order-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--store-surface);
  border: 2px solid var(--store-border);
  color: var(--store-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.order-step-point.is-completed .order-step-badge {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: #fff;
}

.order-step-point.is-active .order-step-badge {
  background: var(--store-surface);
  border-color: var(--store-primary);
  color: var(--store-primary);
  box-shadow: 0 0 0 3px rgba(30, 100, 184, 0.18);
}

.order-step-text {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--store-text-muted);
  white-space: nowrap;
}

.order-step-point.is-completed .order-step-text,
.order-step-point.is-active .order-step-text {
  color: var(--store-text);
  font-weight: 700;
}

/* Ordered Item Tile */
.order-item-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--store-border);
  gap: 0.75rem;
}

.order-item-tile:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-item-tile:first-child {
  padding-top: 0;
}

.order-item-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--store-border);
  background: var(--store-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--store-text-muted);
  font-size: 1.25rem;
}

.order-item-details {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--store-text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.order-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.order-item-name a:hover {
  color: var(--store-primary);
}

.order-item-meta {
  font-size: 0.72rem;
  color: var(--store-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.order-item-pricing {
  text-align: right;
  min-width: 100px;
}

.order-item-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--store-text);
}

.order-item-unit {
  font-size: 0.7rem;
  color: var(--store-text-muted);
}

/* Price Breakdown Rows */
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--store-text-muted);
}

.order-summary-row.total-row {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--store-text);
  border-top: 1px solid var(--store-border);
  padding-top: 0.5rem;
  margin-top: 0.35rem;
}

/* Support Help Strip */
.order-help-strip {
  background: var(--store-surface-muted);
  border: 1px solid var(--store-border);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.account-layout,
.account-main,
.order-details-shell,
.order-details-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 576px) {
  .order-header-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
  }
  .order-header-num {
    font-size: 1.02rem;
    word-break: break-all;
  }
  .order-header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
  }
  .order-stepper-track {
    display: flex;
    justify-content: space-between;
    gap: 0.15rem;
    padding: 0;
    margin: 0.4rem 0 0.15rem;
    overflow: hidden;
  }
  .order-stepper-track::before,
  .order-stepper-fill {
    display: none; /* Hide horizontal connector on mobile to avoid overflow */
  }
  .order-step-point {
    flex: 1;
    min-width: 0;
  }
  .order-step-badge {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .order-step-text {
    font-size: 0.62rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    word-break: normal;
    margin-top: 0.25rem;
  }
  .order-item-tile {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .order-item-pricing {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 60px;
    text-align: left;
  }
  .order-summary-row {
    font-size: 0.76rem;
  }
  .order-summary-row.total-row {
    font-size: 0.9rem;
  }
  .order-help-strip {
    padding: 0.55rem 0.7rem;
  }
}



