/* Custom Styles for Silver Hands Global Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --shg-primary: #f6a73f;
  --shg-primary-hover: #f7b758;
  --shg-primary-light: rgba(255, 153, 0, 0.15);
  --shg-topbar-bg: #0b1320;
  --shg-topbar-fg: #94a3b8;
  --shg-navy: #0b1320;
  --shg-navy-fg: #f8fafc;
  --shg-text-muted: #64748b;
  --shg-surface: #f1f5f9;
  --shg-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shg-font-display: 'Plus Jakarta Sans', sans-serif;
  --shg-border: #e2e8f0;
  --shg-border-strong: #cbd5e1;
  --shg-card-radius: 0.875rem;
  --shg-control-radius: 0.5rem;
  --shg-card-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  --shg-focus-ring: 0 0 0 0.25rem rgba(246, 167, 63, 0.24);
  --shg-content-max: 90rem;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--shg-font-sans);
  color: #334155;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.main {
  flex: 1 0 auto;
  min-width: 0;
}

.main-navbar-inner {
  min-height: 4.5rem;
  max-width: var(--shg-content-max);
  margin-inline: auto;
}

.brand-tagline {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.account-menu {
  min-width: 14rem;
  max-height: min(22rem, calc(100vh - 7rem));
  overflow-y: auto;
}

.create-project-button {
  padding: 0.45rem 0.9rem;
}

.place-items-center {
  place-items: center;
}

.min-w-0 {
  min-width: 0;
}

.min-h-200 {
  min-height: 12.5rem;
}

.border-dashed {
  border-style: dashed !important;
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.leading-relaxed {
  line-height: 1.75 !important;
}

.hover-text-primary:hover {
  color: var(--shg-primary) !important;
}

.py-2\.5 {
  padding-top: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}

.px-2\.5 {
  padding-left: 0.625rem !important;
  padding-right: 0.625rem !important;
}

.py-1\.5 {
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  border-radius: var(--shg-control-radius);
  background: var(--shg-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: none;
  box-shadow: var(--shg-focus-ring) !important;
}

.font-display {
  font-family: var(--shg-font-display);
}

/* Color Utilities */
.bg-topbar {
  background-color: var(--shg-topbar-bg) !important;
}

.text-topbar-foreground {
  color: var(--shg-topbar-fg) !important;
}

.bg-navy {
  background-color: var(--shg-navy) !important;
}

.text-navy {
  color: var(--shg-navy) !important;
}

.text-navy-foreground {
  color: var(--shg-navy-fg) !important;
}

.bg-shg-primary {
  background-color: var(--shg-primary) !important;
  color: #0b1320 !important;
}

.text-shg-primary {
  color: var(--shg-primary) !important;
}

.bg-surface {
  background-color: var(--shg-surface) !important;
}

/* Custom Buttons & Badges */
.btn-shg-primary {
  background-color: var(--shg-primary);
  color: #0b1320;
  font-weight: 600;
  border-radius: var(--shg-control-radius);
  padding: 0.625rem 1.25rem;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-shg-primary:active {
  background-color: #e99a34 !important;
  color: var(--shg-navy) !important;
  transform: translateY(1px);
}

.btn-shg-primary:disabled,
.btn-shg-primary.disabled {
  background-color: #f8c985;
  color: rgba(11, 19, 32, 0.65);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-shg-primary:hover {
  background-color: var(--shg-primary-hover);
  color: #0b1320;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: #475569;
  background: transparent;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-icon:hover {
  background-color: #f1f5f9;
  color: var(--shg-primary);
}

.shg-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--shg-primary);
  color: #0b1320;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Logo SHG Badge */
.shg-logo-box {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 0.5rem;
  background-color: var(--shg-primary);
  color: #0b1320;
  font-family: var(--shg-font-display);
  font-weight: 700;
  font-size: 1rem;
}

/* Sticky Header */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.create-project-button {
  padding: 0;
}

.main-navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease-in-out;
}

.main-navbar.scrolled {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.nav-link-custom {
  padding: 0.5rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease-in-out;
}

@media (max-width: 1280px) {
  .nav-link-custom {
    padding: 0.35rem 0.45rem;
    font-size: 0.8125rem;
  }
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--shg-primary);
}

/* Phone Header Widget */
.phone-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid #e2e8f0;
}

.phone-widget-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--shg-primary-light);
  color: var(--shg-navy);
}

/* Dropdown Menu Styling */
.dropdown-menu-custom {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  max-height: 22rem;
  overflow-y: auto;
}

.dropdown-header-custom {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
}

.dropdown-item-custom {
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  color: #334155;
  text-decoration: none;
  display: block;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item-custom:hover {
  background-color: #f1f5f9;
  color: var(--shg-navy);
}

.view-button {
  border: 1px solid #334155 !important;
}

.view-button:hover {
  background-color: #f1f5f9;
  color: var(--shg-navy);
}

.account-button:hover {
  background-color: #f1f5f9;
  color: var(--shg-navy);
}

/* Offcanvas Drawer */
.offcanvas-custom {
  max-width: 340px;
}

.offcanvas-custom .btn-close-custom {
  background: none;
  border: none;
  padding: 0.25rem;
  color: #64748b;
}

/* Card & Section Styles */
.section-y {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.shadow-card {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.bg-card {
  background-color: #ffffff;
}

.text-muted-foreground {
  color: var(--shg-text-muted, #64748b);
}

.shg-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.shg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
}

.shg-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #f1f5f9;
}

.shg-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shg-card:hover .shg-card-img-wrap img {
  transform: scale(1.05);
}

.progress-custom {
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #e2e8f0;
}

.progress-custom .progress-bar {
  background-color: var(--shg-primary);
  border-radius: 9999px;
}

.hero-overlay {
  background: linear-gradient(90deg, #0b1320 0%, rgba(11, 19, 32, 0.85) 50%, rgba(11, 19, 32, 0.4) 100%);
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: #ffffff;
  color: var(--shg-navy);
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  color: #0b1320;
}

.team-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.team-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* Footer Styling */
footer.footer-navy {
  background-color: var(--shg-navy);
  color: var(--shg-navy-fg);
  margin-top: auto;
}

footer .footer-title {
  font-family: var(--shg-font-display);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

footer a.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a.footer-link:hover {
  color: var(--shg-primary);
}

.social-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon-btn:hover {
  background-color: var(--shg-primary);
  color: #0b1320;
  transform: translateY(-2px);
}

.newsletter-input {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.scroll-top-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transition: all 0.2s ease;
}

.scroll-top-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* About Page & Utility Styles */
.tracking-wider {
  letter-spacing: 0.05em;
}

.extra-small {
  font-size: 0.75rem;
}

.hover-white:hover {
  color: #ffffff !important;
}

.stat-icon-circle {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 2px solid rgba(11, 19, 32, 0.4);
}

.about-floating-badge {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  background-color: var(--shg-primary);
  color: var(--shg-navy);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Campaign Helper Utilities */
.hover-primary:hover {
  color: var(--shg-primary) !important;
}

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

.preset-amount-btn.active {
  background-color: var(--shg-primary) !important;
  color: #0b1320 !important;
  border-color: var(--shg-primary) !important;
}

.payment-method-card {
  transition: all 0.2s ease;
}

.payment-method-card:hover,
.payment-method-card:has(input:checked) {
  border-color: var(--shg-primary) !important;
  background-color: rgba(246, 167, 63, 0.08);
}

/* Product Card & Detail Helper Styles */
.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
}

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f1f5f9;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.05);
}

.product-card-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card:hover .product-card-actions {
  opacity: 1;
}

.stock-out-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 19, 32, 0.6);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s ease;
}

.gallery-thumb.active {
  border-color: var(--shg-primary);
}

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

.nav-tabs-custom {
  border-bottom: 1px solid #e2e8f0;
}

.nav-tabs-custom .nav-link {
  color: var(--shg-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  transition: all 0.2s ease;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--shg-navy);
}

.nav-tabs-custom .nav-link.active {
  color: var(--shg-navy);
  border-bottom-color: var(--shg-primary);
  background: transparent;
  font-weight: 700;
}

/* --- NGO Stores View Custom CSS --- */

.aspect-16-7 {
  aspect-ratio: 16 / 7;
}

.ngo-cover-frame {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #ffffff;
}

.ngo-cover-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: none;
}

.aspect-16-5 {
  aspect-ratio: 16 / 5;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.shadow-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shadow-card-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.hover-zoom-container {
  overflow: hidden;
  position: relative;
}

.hover-zoom-img {
  transition: transform 0.5s ease;
}

.hover-zoom-container:hover .hover-zoom-img {
  transform: scale(1.05);
}

.store-logo-overlap {
  border-radius: 0.75rem;
  border: 4px solid #ffffff;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  padding: 0.35rem;
}

.store-card-logo {
  width: 4rem;
  height: 4rem;
  margin-top: -2rem;
}

.ngo-card-logo-wrap {
  position: relative;
  z-index: 3;
  height: 0;
}

.ngo-card-logo {
  display: block;
  margin-top: -2.5rem;
  margin-bottom: 1rem;
}

.store-detail-logo {
  width: 5rem;
  height: 5rem;
}

.store-inline-logo {
  width: 6rem;
  height: 6rem;
  flex: 0 0 auto;
}

.btn-outline-custom {
  border: 1px solid #cbd5e1;
  background-color: transparent;
  color: var(--shg-navy);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: var(--shg-navy);
}

.product-badge-discount {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background-color: #ef4444;
  color: #ffffff;
  z-index: 5;
}

.product-badge-stockout {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 19, 32, 0.6);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 5;
}

.product-hover-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.hover-zoom-container:hover .product-hover-actions {
  opacity: 1;
}

.product-action-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  transition: all 0.2s ease;
  text-decoration: none;
}

.product-action-btn:hover {
  background-color: #f1f5f9;
  color: var(--shg-primary);
}

.page-hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 27, 46, 0.75), rgba(11, 27, 46, 0.85));
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

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

/* Gallery Styles */
.cat-pill {
  padding: 0.45rem 1.15rem;
  border-radius: 50rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #cbd5e1;
  background-color: transparent;
  color: #334155;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.cat-pill:hover {
  border-color: var(--shg-primary);
  color: #0b1320;
}

.cat-pill.active {
  background-color: var(--shg-primary);
  color: #0b1320;
  border-color: var(--shg-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(246, 167, 63, 0.25);
}

.gallery-grid {
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    column-count: 4;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #f1f5f9;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal Overlay */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 1060;
}

.lightbox-close:hover {
  background: var(--shg-primary);
  color: #0b1320;
  transform: scale(1.1);
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Custom Tabs & Event Utilities */
.custom-tabs {
  background-color: #f1f5f9;
  padding: 0.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  gap: 0.25rem;
  border: none;
}

.custom-tabs .nav-link {
  color: #64748b;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  transition: all 0.2s ease-in-out;
}

.custom-tabs .nav-link:hover {
  color: #0b1320;
}

.custom-tabs .nav-link.active {
  background-color: #ffffff;
  color: #0b1320;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hover-primary:hover {
  color: var(--shg-primary) !important;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-underline:hover {
  text-decoration: underline !important;
}

.bg-shg-primary-light {
  background-color: var(--shg-primary-light) !important;
}

.bg-success-light {
  background-color: rgba(34, 197, 94, 0.15) !important;
}

/* Account Sidebar Nav */
.account-nav .nav-link {
  color: #475569;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.account-nav .nav-link:hover {
  background-color: #f1f5f9;
  color: var(--shg-navy);
}

.account-nav .nav-link.active {
  background-color: var(--shg-primary);
  color: #0b1320;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(246, 167, 63, 0.3);
}

.cursor-pointer {
  cursor: pointer;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Professional Category Filter Buttons */
.shg-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.shg-cat-btn:hover:not(.active) {
  background-color: #f1f5f9;
  color: #0b1320;
}

.shg-cat-btn.active {
  background-color: var(--shg-primary) !important;
  color: #0b1320 !important;
  font-weight: 700 !important;
  border-color: var(--shg-primary) !important;
  box-shadow: 0 4px 12px rgba(246, 167, 63, 0.25);
}

.shg-cat-btn .cat-count {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.75;
}

.shg-cat-btn.active .cat-count {
  opacity: 0.95;
  font-weight: 600;
}

/* Unified application primitives
   These rules normalize Bootstrap-based views without changing the brand theme. */
.main > section > .container-fluid,
.main > section > .container,
.main > section > .container-xl {
  width: 100%;
  max-width: var(--shg-content-max);
  margin-inline: auto;
}

.main > section:first-child:not(.section-y) > .container-fluid,
.main > section:first-child:not(.section-y) > .container,
.main > section:first-child:not(.section-y) > .container-xl {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

.main > section:first-child:not(.section-y) > .container-fluid > h1,
.main > section:first-child:not(.section-y) > .container > h1,
.main > section:first-child:not(.section-y) > .container-xl > h1 {
  max-width: 52rem;
  margin-bottom: 0.5rem !important;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.main > section:first-child:not(.section-y) nav,
.main > section:first-child:not(.section-y) .breadcrumb {
  flex-wrap: wrap;
  row-gap: 0.35rem !important;
  margin-top: 1rem !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  text-wrap: balance;
}

p:last-child {
  margin-bottom: 0;
}

.card.rounded-4,
.shg-card,
.product-card,
.team-card {
  border-color: var(--shg-border) !important;
  border-radius: var(--shg-card-radius) !important;
}

.card.shadow-sm,
.shadow-card {
  box-shadow: var(--shg-card-shadow) !important;
}

.card > h2:first-child,
.card > h3:first-child,
.card > h4:first-child,
.card > h5:first-child {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.btn {
  min-height: 2.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--shg-control-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
}

.btn-lg,
.input-group-lg > .btn {
  min-height: 3rem;
  padding-inline: 1.35rem;
  font-size: 1rem;
}

.btn-icon,
.scroll-top-btn,
.social-icon-btn,
.product-action-btn,
.lightbox-close {
  min-height: 0;
}

.btn-outline-secondary {
  border-color: var(--shg-border-strong);
  color: #334155;
  background-color: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  border-color: #94a3b8;
  background-color: #f1f5f9;
  color: var(--shg-navy);
}

.btn-link {
  min-height: auto;
}

.form-label {
  margin-bottom: 0.45rem;
  color: var(--shg-navy);
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 2.875rem;
  border-color: var(--shg-border-strong);
  border-radius: var(--shg-control-radius);
  color: #334155;
  font-size: 0.9375rem;
}

.form-control,
.form-select {
  padding: 0.65rem 0.85rem;
}

textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

.form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--shg-primary);
  box-shadow: var(--shg-focus-ring);
}

.form-check-input:checked {
  background-color: var(--shg-primary);
  border-color: var(--shg-primary);
}

.form-check-input:checked[type='checkbox'] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230b1320' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.table-responsive {
  border: 1px solid var(--shg-border);
  border-radius: 0.75rem;
}

.table-responsive .table {
  min-width: 42rem;
}

.table > :not(caption) > * > * {
  padding: 0.9rem 1rem;
  border-bottom-color: var(--shg-border);
  vertical-align: middle;
}

.table > thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table > tbody tr:last-child > * {
  border-bottom-width: 0;
}

.table > tbody tr:hover > * {
  background-color: #fcfdff;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.3rem 0.65rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1;
}

.alert {
  border-radius: 0.75rem;
  border-width: 1px;
  padding: 0.9rem 1rem;
}

.pagination {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.page-link {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: grid;
  place-items: center;
  border-color: var(--shg-border);
  border-radius: 0.5rem !important;
  color: #475569;
}

.page-item.active .page-link {
  border-color: var(--shg-primary);
  background: var(--shg-primary);
  color: var(--shg-navy);
  font-weight: 700;
}

.auth-card {
  width: min(100%, 28rem);
}

.content-card {
  width: min(100%, 42rem);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
}

.media-thumb-sm {
  width: 3rem;
  height: 3rem;
}

.sticky-top {
  scroll-margin-top: 7rem;
}

@media (max-width: 991.98px) {
  .section-y {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

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

  .account-nav .nav-link {
    margin-bottom: 0;
  }

  .sticky-top {
    position: static !important;
  }
}

@media (max-width: 767.98px) {
  .section-y {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .main > section > .container-fluid,
  .main > section > .container,
  .main > section > .container-xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .main > section:first-child:not(.section-y) > .container-fluid,
  .main > section:first-child:not(.section-y) > .container,
  .main > section:first-child:not(.section-y) > .container-xl {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .card.p-4,
  .card.p-md-5 {
    padding: 1.25rem !important;
  }

  .card .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .input-group-lg > .form-control,
  .input-group-lg > .input-group-text,
  .input-group-lg > .btn {
    font-size: 0.9375rem;
  }

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

  .gallery-grid {
    column-gap: 0.75rem;
  }

  .footer-navy form.d-flex,
  .main form.d-flex:not(.flex-column) {
    flex-wrap: wrap;
  }

  .footer-navy form.d-flex > .form-control,
  .footer-navy form.d-flex > .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .main-navbar .shg-logo-box {
    width: 2.25rem;
    height: 2.25rem;
  }

  .main-navbar .font-display.fs-5 {
    font-size: 1rem !important;
  }

  .main-navbar .btn-icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .btn:not(.btn-icon):not(.product-action-btn) {
    white-space: normal;
  }

  .gallery-grid {
    column-count: 1;
  }
}

/* Admin portal */
.admin-sidebar { display: flex; }
.vendor-sidebar-brand { min-height: 5rem; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.vendor-sidebar-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.vendor-sidebar-brand small { margin-top: .2rem; color: rgba(255,255,255,.55); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.vendor-brand-mark { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: .65rem; background: var(--shg-primary); color: var(--shg-navy); }
.vendor-sidebar-nav { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; }
.vendor-topbar { position: sticky; top: 0; z-index: 1030; min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 2rem; border-bottom: 1px solid var(--shg-border); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.vendor-topbar-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.vendor-mobile-menu { display: none; font-size: 1.35rem; }
.vendor-icon-btn { position: relative; width: 2.45rem; height: 2.45rem; display: grid; place-items: center; border: 1px solid var(--shg-border); border-radius: .65rem; color: var(--shg-navy); text-decoration: none; }
.vendor-notification-dot { position: absolute; top: .35rem; right: .35rem; width: .45rem; height: .45rem; border: 2px solid #fff; border-radius: 50%; background: #ef4444; }
.vendor-user-menu { display: flex; align-items: center; gap: .65rem; padding: .25rem .4rem; border: 0; border-radius: .65rem; background: transparent; color: #334155; }
.vendor-user-menu:hover { background: #f1f5f9; }
.vendor-user-menu strong,.vendor-user-menu small { max-width: 11rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor-user-menu strong { color: var(--shg-navy); font-size: .8rem; }.vendor-user-menu small { color: var(--shg-text-muted); font-size: .68rem; }
.vendor-filter-form { width: 100%; display: flex; align-items: center; gap: .75rem; }
.vendor-filter-form .vendor-search input { width: 100%; padding: .55rem .75rem .55rem 2.5rem; border: 1px solid #dee2e6; border-radius: .5rem; }
.vendor-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.vendor-stat-card { display: flex; align-items: center; gap: 1rem; }
.vendor-stat-card .vendor-stat-icon { margin-bottom: 0; }
.vendor-stat-label { color: var(--shg-text-muted); font-size: .75rem; font-weight: 600; }
.vendor-stat-value { color: var(--shg-navy); font-family: var(--shg-font-display); font-size: 1.45rem; font-weight: 800; }
.vendor-stat-icon.blue { background:#e0f2fe;color:#0369a1 }.vendor-stat-icon.teal { background:#ccfbf1;color:#0f766e }.vendor-stat-icon.amber { background:#fef3c7;color:#b45309 }.vendor-stat-icon.green { background:#dcfce7;color:#15803d }
.vendor-status.active,.vendor-status.published,.vendor-status.completed,.vendor-status.delivered,.vendor-status.paid { background:#dcfce7;color:#166534 }
.vendor-status.draft,.vendor-status.pending,.vendor-status.processing { background:#fef3c7;color:#92400e }
.vendor-status.shipped,.vendor-status.verified { background:#dbeafe;color:#1d4ed8 }
.vendor-status.archived,.vendor-status.hidden,.vendor-status.suspended,.vendor-status.rejected,.vendor-status.cancelled,.vendor-status.refunded,.vendor-status.unpaid { background:#fee2e2;color:#991b1b }
.admin-attention-list { display:grid; gap:.35rem }.admin-attention-list a { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem; border-radius:.65rem; color:#334155; text-decoration:none }.admin-attention-list a:hover { background:#f8fafc }.admin-attention-list i { width:1.5rem; color:#d98518 }.admin-attention-list strong { min-width:2rem; padding:.25rem .5rem; border-radius:999px; background:#f1f5f9; color:var(--shg-navy); text-align:center }
.admin-vendor-mini { display:flex; align-items:center; gap:.75rem; padding:.75rem; border:1px solid var(--shg-border); border-radius:.7rem; color:var(--shg-navy); text-decoration:none }.admin-vendor-mini:hover { border-color:#f3c57e }.admin-vendor-mini strong,.admin-vendor-mini small { display:block }.admin-vendor-mini small { color:var(--shg-text-muted); font-size:.72rem }
.vendor-table td strong,.vendor-table td small { display:block }.vendor-table td small { margin-top:.15rem; color:var(--shg-text-muted); font-size:.7rem }
.admin-detail-list { display:grid; margin:1rem 0 0 }.admin-detail-list > div { display:flex; justify-content:space-between; gap:1rem; padding:.7rem 0; border-bottom:1px solid var(--shg-border) }.admin-detail-list dt { color:var(--shg-text-muted); font-size:.76rem; font-weight:600 }.admin-detail-list dd { margin:0; color:var(--shg-navy); font-size:.82rem; font-weight:600; text-align:right; overflow-wrap:anywhere }
.admin-profile-avatar { width:4rem;height:4rem;font-size:1.25rem }.admin-three-stats { grid-template-columns:repeat(3,minmax(0,1fr)) }
.admin-image-placeholder { aspect-ratio:1;display:grid;place-items:center;border-radius:.8rem;background:#f1f5f9;color:#94a3b8;font-size:2rem }
.admin-review-card { height:100%;padding:1.15rem;border:1px solid var(--shg-border);border-radius:.8rem;background:#fff }.admin-review-card h3 { margin:1rem 0 .35rem;color:var(--shg-navy);font-family:var(--shg-font-display);font-size:1rem;font-weight:700 }.admin-review-card p { margin-bottom:.65rem;color:#475569;font-size:.85rem }
.admin-section-heading { display:flex;align-items:flex-start;gap:.8rem;margin-bottom:1.5rem }.admin-section-heading > i { width:2.4rem;height:2.4rem;display:grid;place-items:center;border-radius:.65rem;background:var(--shg-primary-light);color:#d98518 }.admin-section-heading h2 { margin:0;color:var(--shg-navy);font-family:var(--shg-font-display);font-size:1.05rem;font-weight:700 }.admin-section-heading p { margin:.15rem 0 0;color:var(--shg-text-muted);font-size:.8rem }.admin-sticky-column { position:sticky;top:6rem }.admin-upload-preview { display:block;max-width:10rem;max-height:5rem;margin-top:.75rem;object-fit:contain }.admin-upload-preview.small { max-width:3rem }.admin-content-editor { min-height:24rem }
.admin-notification { display:flex;align-items:flex-start;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--shg-border) }.admin-notification.unread { background:#fffcf5 }.admin-notification p { margin:.2rem 0;color:#64748b;font-size:.85rem }.admin-notification small { color:#94a3b8 }
.admin-auth-body .vendor-auth-shell { grid-template-columns:minmax(22rem,44%) 1fr }.vendor-auth-story { min-height:100vh;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(2rem,5vw,5rem);background:linear-gradient(145deg,rgba(11,19,32,.98),rgba(15,36,58,.94));color:#fff }.vendor-auth-story .vendor-auth-brand { position:static;height:auto;padding:0;background:none;color:#fff;text-decoration:none }.vendor-auth-story h1 { max-width:34rem;margin:.75rem 0 1rem;font-size:clamp(2.25rem,4vw,4rem);font-weight:800 }.vendor-auth-story p { max-width:35rem;color:rgba(255,255,255,.7);font-size:1.05rem }.vendor-auth-kicker { color:var(--shg-primary);font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase }.vendor-auth-trust { display:flex;align-items:center;gap:.6rem;color:rgba(255,255,255,.65);font-size:.8rem }.vendor-auth-form-area { display:grid;place-items:center;padding:2rem }.vendor-auth-form-area .vendor-auth-card { width:min(100%,30rem) }
.shg-dynamic-logo { width:2.5rem;height:2.5rem;border-radius:.45rem;object-fit:contain;background:#fff }
.sticky-header .shg-dynamic-logo { width:3.35rem; height:3.35rem; }
.cms-page-hero { padding:5rem 0;background:var(--shg-primary);color:var(--shg-navy) }.cms-page-hero h1 { max-width:55rem;margin:0;font-family:var(--shg-font-display);font-size:clamp(2.25rem,5vw,4.25rem);font-weight:800 }.cms-page-hero p { max-width:48rem;margin:1rem 0 0;color:rgba(11,19,32,.72);font-size:1.1rem }.cms-page-main { padding:clamp(2rem,5vw,5rem) 0;background:#f8fafc }.cms-page-card { max-width:55rem;margin:auto;padding:clamp(1.5rem,4vw,3.5rem);border:1px solid var(--shg-border);border-radius:1rem;background:#fff;box-shadow:0 12px 35px rgba(15,23,42,.06) }.cms-page-image { width:100%;max-height:28rem;margin-bottom:2rem;border-radius:.75rem;object-fit:cover }.cms-page-content { color:#334155;font-size:1rem;line-height:1.9 }.cms-page-updated { margin-top:2.5rem;padding-top:1rem;border-top:1px solid var(--shg-border);color:#94a3b8;font-size:.75rem }

@media (max-width:1199.98px){.vendor-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-sticky-column{position:static}}
@media (max-width:991.98px){.admin-sidebar{display:none}.vendor-topbar{padding-inline:1.25rem}.vendor-mobile-menu{display:inline-flex}.admin-auth-body .vendor-auth-shell{display:block}.vendor-auth-story{min-height:18rem;padding:2rem}.vendor-auth-trust{display:none}.vendor-auth-form-area{padding:2rem 1rem}}
@media (max-width:767.98px){.vendor-filter-form{align-items:stretch;flex-wrap:wrap}.vendor-filter-form .vendor-search{flex-basis:100%}.vendor-filter-form .form-select{flex:1}.vendor-topbar-context{display:none}.admin-notification{flex-wrap:wrap}.cms-page-hero{padding:3.5rem 0}}
@media (max-width:575.98px){.vendor-stat-grid,.admin-three-stats{grid-template-columns:1fr}.vendor-topbar{padding-inline:.75rem}.vendor-topbar-actions>.btn{display:none}.vendor-user-menu>i{display:none}.admin-section-heading{margin-bottom:1rem}}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Vendor portal */
.vendor-portal-body {
  background: #f6f8fb;
  min-height: 100vh;
}

.vendor-shell {
  display: flex;
  min-height: 100vh;
}

.vendor-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1035;
  width: 17rem;
  flex-direction: column;
  background: var(--shg-navy);
  color: #fff;
  overflow-y: auto;
}

.vendor-brand {
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}

.vendor-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.vendor-brand strong { font-size: 1rem; }
.vendor-brand small { margin-top: .2rem; color: rgba(255,255,255,.55); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }

.vendor-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
}

.vendor-nav-label {
  padding: 1rem .75rem .35rem;
  color: rgba(255,255,255,.42);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vendor-nav-link {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: .55rem;
  color: rgba(255,255,255,.72);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.vendor-nav-link > i { width: 1.15rem; font-size: 1rem; text-align: center; }
.vendor-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.vendor-nav-link.active { background: var(--shg-primary); color: var(--shg-navy); font-weight: 700; box-shadow: 0 5px 14px rgba(246,167,63,.2); }
.vendor-nav-count { min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; margin-left: auto; padding: 0 .3rem; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .65rem; }
.vendor-nav-link.active .vendor-nav-count { background: rgba(11,19,32,.12); }

.vendor-sidebar-footer {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.vendor-logout-btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.vendor-logout-btn:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; }

.vendor-workspace { min-width: 0; width: 100%; margin-left: 17rem; }

.vendor-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 2rem;
  border-bottom: 1px solid var(--shg-border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.vendor-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .3rem .45rem;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  color: #334155;
}
.vendor-profile-trigger:hover { background: #f1f5f9; }
.vendor-profile-trigger strong,.vendor-profile-trigger small { max-width: 10rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor-profile-trigger strong { color: var(--shg-navy); font-size: .8rem; }
.vendor-profile-trigger small { color: var(--shg-text-muted); font-size: .68rem; }
.vendor-avatar { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: .6rem; background: var(--shg-primary); color: var(--shg-navy); font-family: var(--shg-font-display); font-size: .75rem; font-weight: 800; overflow: hidden; }
.vendor-avatar.has-image { padding: 0; background: #fff; }
.vendor-avatar.has-image img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }

.vendor-main { min-width: 0; }
.vendor-content { width: 100%; max-width: 100rem; margin: 0 auto; padding: 2rem; }
.vendor-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; position: relative; }
.vendor-page-heading > div:first-child { min-width: 0; }
.vendor-page-heading h1 { letter-spacing: -.025em; }
.vendor-page-actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }

.vendor-panel,
.vendor-stat-card {
  border: 1px solid var(--shg-border);
  border-radius: var(--shg-card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15,23,42,.045);
}
.vendor-panel { padding: 1.5rem; }
.vendor-panel.p-0 { padding: 0 !important; overflow: hidden; }
.vendor-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.vendor-panel-header h2 { margin: 0 0 .2rem; color: var(--shg-navy); font-family: var(--shg-font-display); font-size: 1.05rem; font-weight: 700; }
.vendor-panel-header p { margin: 0; color: var(--shg-text-muted); font-size: .8rem; }

.vendor-stat-card { position: relative; height: 100%; padding: 1.25rem; overflow: hidden; }
.vendor-stat-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin-bottom: 1.15rem; border-radius: .75rem; background: var(--shg-primary-light); color: #d98518; font-size: 1.15rem; }

.vendor-status { min-height: 1.6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.status-active,.status-completed,.status-paid { background: #dcfce7; color: #166534; }
.status-draft,.status-pending,.status-processing { background: #fef3c7; color: #92400e; }
.status-shipped { background: #dbeafe; color: #1d4ed8; }
.status-inactive,.status-cancelled,.status-refunded,.status-unpaid { background: #fee2e2; color: #991b1b; }

.vendor-alert-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--shg-border); color: #334155; text-decoration: none; }
.vendor-alert-row:last-child { border-bottom: 0; }
.vendor-alert-row small { color: var(--shg-text-muted); }
.vendor-alert-icon { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: .55rem; background: #fff7ed; color: #c2410c; }

.vendor-empty { min-height: 19rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1rem; text-align: center; }
.vendor-empty.compact { min-height: 13rem; }
.vendor-empty > i { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 1rem; background: #f1f5f9; color: #64748b; font-size: 1.5rem; }
.vendor-empty h2,.vendor-empty h3 { margin-bottom: .35rem; color: var(--shg-navy); font-family: var(--shg-font-display); font-size: 1.1rem; font-weight: 700; }
.vendor-empty p { max-width: 28rem; margin-bottom: 1.25rem; color: var(--shg-text-muted); font-size: .875rem; }

.vendor-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.vendor-toolbar .form-select { width: auto; min-width: 10rem; }
.vendor-search { position: relative; flex: 1; min-width: 13rem; }
.vendor-search > i { position: absolute; top: 50%; left: .9rem; z-index: 2; color: #94a3b8; transform: translateY(-50%); }
.vendor-search .form-control { padding-left: 2.6rem; }
.vendor-pagination { display: flex; justify-content: flex-end; padding-top: 1.25rem; }
.vendor-pagination nav > div:first-child { display: none !important; }

.vendor-table-thumb { width: 2.8rem; height: 2.8rem; border-radius: .55rem; object-fit: cover; }
.vendor-table-thumb.placeholder { display: grid; place-items: center; flex: 0 0 auto; background: #f1f5f9; color: #94a3b8; }
.vendor-form-preview { width: 100%; max-height: 14rem; border-radius: .65rem; object-fit: cover; }
.vendor-profile-logo { width: 6rem; height: 6rem; border-radius: 1rem; object-fit: cover; }
.vendor-detail-image { width: 100%; aspect-ratio: 1/1; display: grid; place-items: center; border-radius: .75rem; object-fit: cover; background: #f1f5f9; color: #94a3b8; font-size: 3rem; }
.vendor-campaign-cover { width: 100%; max-height: 25rem; border-radius: .75rem; object-fit: cover; }
.vendor-detail-stat { padding: 1rem; border: 1px solid var(--shg-border); border-radius: .65rem; background: #f8fafc; }
.vendor-detail-stat span,.vendor-detail-stat strong { display: block; }
.vendor-detail-stat span { margin-bottom: .2rem; color: var(--shg-text-muted); font-size: .72rem; }
.vendor-detail-stat strong { color: var(--shg-navy); font-family: var(--shg-font-display); }
.vendor-form-actions { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; gap: .75rem; margin: 1.5rem -2rem -2rem; padding: 1rem 2rem; border-top: 1px solid var(--shg-border); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }

.vendor-order-totals { width: min(100%, 22rem); margin: 1.25rem 0 0 auto; }
.vendor-order-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; color: #64748b; }
.vendor-order-totals .total { margin-top: .4rem; padding-top: .85rem; border-top: 1px solid var(--shg-border); color: var(--shg-navy); font-size: 1.05rem; }
.vendor-detail-list { display: grid; gap: .35rem; }
.vendor-detail-list span { margin-top: .7rem; color: var(--shg-text-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vendor-detail-list a { color: #334155; overflow-wrap: anywhere; }

.vendor-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--shg-border); }
.vendor-setting-row strong { display: block; color: var(--shg-navy); }
.vendor-setting-row p { margin: .15rem 0 0; color: var(--shg-text-muted); font-size: .8rem; }
.vendor-setting-row .form-switch { margin: 0; padding-left: 2.8rem; }
.vendor-setting-row .form-check-input { width: 2.35rem; height: 1.25rem; }
.vendor-review-reply { margin-top: 1rem; padding: 1rem; border-left: 3px solid var(--shg-primary); border-radius: 0 .55rem .55rem 0; background: #fffbeb; }
.vendor-review-reply strong { display: block; margin-bottom: .25rem; color: var(--shg-navy); font-size: .8rem; }
.vendor-review-reply p { margin: 0; color: #64748b; font-size: .875rem; }

.vendor-notification { display: flex; align-items: flex-start; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--shg-border); }
.vendor-notification:last-child { border-bottom: 0; }
.vendor-notification.unread { background: #fffcf5; }
.vendor-notification-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: .65rem; background: var(--shg-primary-light); color: #d98518; }
.vendor-notification p { margin: .2rem 0 0; color: var(--shg-text-muted); font-size: .85rem; }

.vendor-auth-body { background: #f8fafc; }
.vendor-auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(22rem, 42%) 1fr; }
.vendor-auth-brand { position: sticky; top: 0; height: 100vh; padding: clamp(2rem,5vw,5rem); background: linear-gradient(145deg,rgba(11,19,32,.98),rgba(15,36,58,.94)),url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1200&q=75') center/cover; }
.vendor-auth-copy { max-width: 35rem; }
.vendor-auth-form-wrap { width: 100%; max-width: 46rem; align-self: center; justify-self: center; padding: 3rem; }
.vendor-auth-card { padding: clamp(1.5rem,4vw,3rem); border: 1px solid var(--shg-border); border-radius: 1rem; background: #fff; box-shadow: 0 16px 42px rgba(15,23,42,.08); }
.vendor-status-illustration { width: 5rem; height: 5rem; display: grid; place-items: center; border-radius: 1.25rem; background: #fff7ed; color: #c2410c; font-size: 2rem; }

.vendor-mobile-drawer { max-width: 18rem; background: var(--shg-navy); color: #fff; }
.vendor-mobile-drawer .offcanvas-header { background: #fff; color: var(--shg-navy); }
.vendor-mobile-drawer .vendor-nav { padding-bottom: 2rem; }

@media (max-width: 991.98px) {
  .vendor-workspace { margin-left: 0; }
  .vendor-header { padding-inline: 1.25rem; }
  .vendor-content { padding: 1.5rem; }
  .vendor-form-actions { margin-inline: -1.5rem; margin-bottom: -1.5rem; padding-inline: 1.5rem; }
  .vendor-auth-shell { display: block; }
  .vendor-auth-brand { position: relative; height: auto; min-height: 19rem; padding: 2rem; }
  .vendor-auth-brand > a { margin-bottom: 2rem !important; }
  .vendor-auth-copy h1 { font-size: 2rem; }
  .vendor-auth-copy > .d-grid { display: none !important; }
  .vendor-auth-form-wrap { padding: 2rem 1.25rem; }
}

/* Vendor portal refinements */
.vendor-portal-body {
  background:
    radial-gradient(circle at top left, rgba(246, 167, 63, .08), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, .05), transparent 26%),
    #f6f8fb;
}

.vendor-sidebar {
  background: linear-gradient(180deg, #09101d 0%, #0b1320 54%, #091321 100%);
  box-shadow: 18px 0 40px rgba(15,23,42,.18);
}

.vendor-nav {
  gap: .2rem;
}

.vendor-nav-label {
  margin-top: .5rem;
  padding: .9rem .75rem .45rem;
  color: rgba(255,255,255,.46);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.vendor-nav-link {
  background: rgba(255,255,255,.03);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.vendor-nav-link:hover {
  transform: translateX(2px);
}

.vendor-nav-link.active {
  background: linear-gradient(135deg, var(--shg-primary), #ffd27b);
  box-shadow: 0 10px 24px rgba(246,167,63,.24);
}

.vendor-sidebar-footer {
  margin-top: .75rem;
  padding-top: 1rem;
  padding-inline: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
}

.vendor-dashboard-kicker {
  margin-bottom: .5rem;
  color: #b7791f;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vendor-dashboard-hero,
.vendor-profile-hero,
.vendor-summary-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.vendor-dashboard-hero-copy,
.vendor-profile-hero-copy,
.vendor-summary-strip-copy {
  min-width: 0;
}

.vendor-dashboard-hero-copy h2,
.vendor-profile-hero-copy h2,
.vendor-summary-strip-copy h2 {
  margin: 0 0 .4rem;
  color: var(--shg-navy);
  font-family: var(--shg-font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.vendor-dashboard-hero-copy p,
.vendor-profile-hero-copy p,
.vendor-summary-strip-copy p {
  max-width: 52rem;
  margin: 0;
  color: var(--shg-text-muted);
  line-height: 1.65;
}

.vendor-dashboard-hero-actions,
.vendor-profile-hero-side {
  flex: 0 0 auto;
}

.vendor-profile-linkbox {
  min-width: min(28rem, 100%);
  padding: 1rem 1.1rem;
  border: 1px solid var(--shg-border);
  border-radius: .85rem;
  background: #f8fafc;
}

.vendor-inline-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.vendor-inline-metrics > div,
.vendor-summary-strip-stats > div {
  padding: .85rem .9rem;
  border: 1px solid var(--shg-border);
  border-radius: .75rem;
  background: #fff;
}

.vendor-inline-metrics span,
.vendor-summary-strip-stats span {
  display: block;
  margin-bottom: .2rem;
  color: var(--shg-text-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vendor-inline-metrics strong,
.vendor-summary-strip-stats strong {
  color: var(--shg-navy);
  font-family: var(--shg-font-display);
  font-size: .96rem;
  font-weight: 800;
}

.vendor-summary-strip {
  align-items: center;
}

.vendor-summary-strip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  min-width: min(28rem, 100%);
}

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

  .vendor-summary-strip {
    flex-direction: column;
  }

  .vendor-summary-strip-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .vendor-dashboard-hero,
  .vendor-profile-hero,
  .vendor-summary-strip {
    flex-direction: column;
  }

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

  .vendor-summary-strip-stats {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .vendor-inline-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .vendor-content { padding: 1rem; }
  .vendor-page-heading { align-items: stretch; flex-direction: column; margin-bottom: 1.25rem; }
  .vendor-page-actions { justify-content: flex-start; }
  .vendor-page-actions .btn { flex: 1 1 auto; }
  .vendor-panel { padding: 1.15rem; }
  .vendor-panel-header { flex-wrap: wrap; }
  .vendor-toolbar { align-items: stretch; flex-wrap: wrap; }
  .vendor-toolbar .vendor-search { flex-basis: 100%; }
  .vendor-toolbar .form-select { flex: 1; min-width: 0; }
  .vendor-form-actions { margin: 1rem -1rem -1rem; padding: .85rem 1rem; }
  .vendor-auth-brand { min-height: 16rem; }
  .vendor-auth-form-wrap { padding: 1.25rem 1rem; }
  .vendor-auth-card { padding: 1.25rem; }
  .vendor-notification { padding: 1rem; }
}

@media (max-width: 575.98px) {
  .vendor-header { min-height: 4.25rem; padding: .5rem .75rem; }
  .vendor-content { padding-top: 1.25rem; }
  .vendor-page-heading h1 { font-size: 1.65rem; }
  .vendor-panel .table-responsive { margin-inline: -1.15rem; border-inline: 0; border-radius: 0; }
  .vendor-form-actions .btn { flex: 1; }
  .vendor-setting-row { align-items: flex-start; }
  .vendor-auth-copy p { font-size: 1rem !important; }
}
