.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #001c5b 0%, #003087 60%, #001c5b 100%);
  color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.public-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  width: 100%;
}

.home-page .home-flat-shell {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .home-flat-shell + .home-flat-shell {
  margin-top: 0;
}

.home-page .home-flat-shell .section-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.home-page .home-flat-shell .section-head .section-subtitle {
  max-width: 760px;
}

.home-page .home-category-head {
  align-items: center;
}

.home-page .home-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #0f75b8;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

.home-page .home-more-link:hover {
  background: #003087;
  color: #fff;
}

.home-search-section {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.home-search-copy {
  position: relative;
  width: min(100%, 1120px);
  padding: 0 12px;
  text-align: center;
}

.home-search-copy::before,
.home-search-copy::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 170px);
  height: 1px;
  background: #e5e7eb;
}

.home-search-copy::before {
  left: 0;
}

.home-search-copy::after {
  right: 0;
}

.home-search-copy h2 {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0;
  padding: 0 18px;
  background: #fff;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.home-search-copy p {
  margin-top: 14px;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-search-panel {
  width: min(100%, 1200px);
  border-radius: 16px;
  background: linear-gradient(180deg, #e7edf5 0%, #dfe7f0 100%);
  border: 1px solid #d7e0ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.home-search-form {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 168px;
  align-items: center;
  gap: 12px;
}

.home-search-icon {
  width: 22px;
  height: 22px;
  color: #94a3b8;
}

.home-search-form input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid #d6dee8;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-search-form input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.home-search-form input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.home-search-form button {
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f75b8 0%, #003087 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 48, 135, 0.18);
}

.home-search-form button:hover {
  filter: brightness(1.03);
}


.home-page section.mx-auto.max-w-7xl {
  max-width: 1180px !important;
}

.home-page .section-head {
  margin-bottom: 18px;
}

.home-page .section-title {
  font-size: 1.55rem;
  line-height: 1.1;
}

.home-page .section-subtitle {
  font-size: 0.86rem;
}

@media (max-width: 768px) {
  .home-search-copy::before,
  .home-search-copy::after {
    width: calc(50% - 120px);
  }

  .home-search-form {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .home-search-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .home-search-panel {
    padding: 14px;
  }

  .home-search-form {
    gap: 10px;
  }

  .home-search-form input,
  .home-search-form button {
    height: 50px;
    border-radius: 10px;
  }
}

.home-page .category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  min-height: 140px;
  padding: 10px 10px 12px;
  border: 0;
  border-radius: 6px;
  background: #eef3f9;
  box-shadow: none;
  overflow: hidden;
  text-align: center;
}

.home-page .category-chip-image {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 120px;
  background: transparent;
}

.home-page .category-chip strong {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: center;
}

.home-page .category-chip span {
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.74rem;
  text-align: center;
}

.home-page .category-chip small {
  margin-top: 2px;
  line-height: 1.2;
  text-align: center;
}

.home-page .category-chip-image img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  padding: 4px 10px 0;
}

.home-page .best-seller-page {
  gap: 12px;
}

.home-page .best-seller-card {
  border-radius: 14px;
}

.home-page .best-seller-image-wrap {
  aspect-ratio: 1.02;
}

.home-page .best-seller-body {
  padding: 10px 10px 12px;
}

.home-page .best-seller-rating {
  font-size: 0.72rem;
}

.home-page .best-seller-name {
  margin-top: 6px;
  font-size: 0.92rem;
  min-height: 2.4em;
}

.home-page .best-seller-meta {
  font-size: 0.72rem;
}

.home-page .best-seller-price {
  font-size: 1.06rem;
}

.home-page .best-seller-stock-row {
  margin-top: 8px;
  font-size: 0.72rem;
}

.home-page .best-seller-body .catalog-action {
  min-height: 38px;
  border-radius: 8px;
}

.home-page .promo-page {
  gap: 12px;
}

.home-page .promo-card {
  border-radius: 14px;
}

.home-page .promo-card-image-wrap {
  aspect-ratio: 1.02;
}

.home-page .promo-card-body {
  padding: 10px 10px 12px;
}

.home-page .promo-card-rating {
  font-size: 0.72rem;
}

.home-page .promo-card-name {
  margin-top: 6px;
  font-size: 0.92rem;
  min-height: 2.4em;
}

.home-page .promo-card-meta {
  font-size: 0.72rem;
}

.home-page .promo-card-price-row {
  margin-top: 10px;
}

.home-page .promo-card-price {
  font-size: 1.06rem;
}

.home-page .promo-card-old {
  font-size: 0.74rem;
}

.home-page .promo-card-stock-row {
  margin-top: 8px;
  font-size: 0.72rem;
}

.home-page .promo-countdown {
  margin-top: 10px;
  padding-top: 10px;
}

.home-page .promo-countdown-label {
  font-size: 0.68rem;
}

.home-page .promo-countdown-grid {
  gap: 4px;
  margin-top: 6px;
}

.home-page .promo-countdown-box {
  min-height: 36px;
  border-radius: 7px;
  font-size: 0.68rem;
}

.home-page .promo-countdown-box strong {
  font-size: 0.82rem;
}

.home-page .promo-cart-button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo-plate {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.logo-plate img {
  width: auto;
  height: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.public-main-nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
}

@media (min-width: 1024px) {
  .public-main-nav {
    display: flex;
  }
}

.public-nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 140ms ease;
}

.public-nav-link:hover {
  color: #ffd100;
}

.public-profile,
.login-panel {
  position: relative;
}

.login-button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.32rem 0.72rem;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05), 
    0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-weight: 700;
  padding-inline: 0.9rem;
}

.login-button:hover {
  border-color: rgba(255, 209, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1), 
    0 6px 22px rgba(255, 209, 0, 0.08);
}

.public-profile-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.public-profile-toggle:hover {
  transform: scale(1.05);
}

.profile-avatar-ring {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(255, 209, 0, 0.7);
  border-radius: 50%;
  padding: 2px;
  background: rgba(255, 209, 0, 0.08);
  box-shadow: 0 0 0 0 rgba(255, 209, 0, 0);
  transition: all 0.25s ease;
}

.public-profile-toggle:hover .profile-avatar-ring {
  border-color: #ffd100;
  box-shadow: 0 0 14px rgba(255, 209, 0, 0.5), 0 0 0 3px rgba(255, 209, 0, 0.15);
  background: rgba(255, 209, 0, 0.12);
}

.profile-avatar-ring img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Initials-based avatar (shown when no custom photo) */
.profile-initials-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  user-select: none;
}

/* Theme toggle pill button */
.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 0, 0.25);
  background: rgba(255, 209, 0, 0.07);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-theme-toggle:hover {
  background: rgba(255, 209, 0, 0.15);
  border-color: rgba(255, 209, 0, 0.5);
  color: #ffd100;
  box-shadow: 0 0 12px rgba(255, 209, 0, 0.2);
}

.nav-theme-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-name {
  max-width: 9.5rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-role-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.18rem;
  border-radius: 6px;
  background: rgba(255, 209, 0, 0.12);
  border: 1px solid rgba(255, 209, 0, 0.25);
  color: #ffd100;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.18rem 0.48rem;
  letter-spacing: 0.02em;
}

.profile-chevron {
  transition: transform 150ms ease, color 150ms ease;
}

.public-profile:hover .profile-chevron {
  color: #ffd100;
  transform: translateY(1.5px);
}

.login-button {
  font-weight: 700;
  padding-inline: 0.9rem;
}

.public-profile-menu {
  position: absolute;
  right: 0;
  top: 100%;
  width: 14rem;
  min-width: 14rem;
  margin: 0.5rem 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.login-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 286px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
  background: #003087;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  list-style: none;
  margin: 0;
  opacity: 0;
  padding: 0.45rem;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.public-profile:hover .public-profile-menu,
.public-profile:focus-within .public-profile-menu,
.login-panel:hover .login-menu,
.login-panel:focus-within .login-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-menu-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
}

.profile-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffd100;
}

.profile-menu-danger {
  color: #f87171;
  font-weight: 600;
  text-decoration: none;
}

.profile-menu-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.login-menu a {
  align-items: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  font-weight: 700;
  gap: 0.55rem;
  padding: 0.72rem 0.8rem;
}

.login-menu a:hover {
  background: rgba(245, 158, 11, 0.14);
  color: #ffd100;
}

.social-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.fb { background: #1877f2; }
.google { background: #ea4335; }
.line { background: #06c755; }

.home-hero {
  display: none;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(11, 34, 78, 1) 0%, rgba(5, 19, 48, 1) 50%, rgba(18, 52, 110, 0.9) 100%);
  color: #fff;
  position: relative;
  min-height: calc(100vh - 64px);
}

@media (min-width: 640px) {
  .home-hero {
    display: block;
  }
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  pointer-events: none;
  animation: pulse 12s infinite alternate;
}

.home-hero > div:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero > div:first-child img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(2%, 2%); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 36px;
  align-items: center;
}

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

.hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  background: linear-gradient(to right, #ffffff, #f8fafc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-image-wrap {
  min-height: 420px;
  border: 0;
  border-radius: 0;
  background: #001c5b;
  box-shadow: none;
}

.hero-image {
  width: 100%;
  height: min(48vw, 520px);
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center right;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-hero:hover .hero-image {
  transform: scale(1.03);
}

.hero-image-fade {
  mix-blend-mode: normal;
}

.search-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

#home-mobile-wrapper {
  display: flex;
  flex-direction: column;
  background: #003087;
  padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
  #home-mobile-wrapper {
    display: block;
    background: transparent;
    padding-bottom: 0;
  }
}

#categories,
#recommended {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.search-card .card-industrial {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 
    0 20px 40px -15px rgba(5, 19, 48, 0.15);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-card .card-industrial:focus-within {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 
    0 25px 50px -12px rgba(5, 19, 48, 0.25);
  border-color: rgba(245, 158, 11, 0.4);
}

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

.category-card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffd100, #e0b800);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px -8px rgba(11, 34, 78, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.category-card:hover::after {
  opacity: 1;
}

.category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 77, 6, 0.05) 100%);
  color: #003087;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, #ffd100 0%, #e0b800 100%);
  color: #fff;
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.5);
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* Compact layout for homepage recommended products */
.recommended-grid .product-card {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.recommended-grid .product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recommended-grid .product-sku {
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  min-height: 22px;
  width: 100%;
  align-items: center;
}

.recommended-grid .product-name {
  font-size: 0.95rem;
  margin-top: 4px;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
  max-height: 2.5rem;
}

.recommended-grid .product-meta {
  font-size: 0.78rem;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1rem;
  max-height: 2.1rem;
}

.recommended-grid .product-footer {
  margin-top: auto;
  padding-top: 10px;
  gap: 8px;
}

.recommended-grid .price-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 54px;
  justify-content: flex-start;
}

.recommended-grid .price {
  font-size: 1.15rem;
  font-weight: 700;
}

.recommended-grid .stock-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
}

.recommended-grid .catalog-action {
  min-height: 36px;
  font-size: 0.8rem;
  border-radius: 8px;
  margin-top: 0;
  flex-shrink: 0;
}

.home-hero .btn-primary,
.add-cart-button {
  background: linear-gradient(135deg, #ffd100 0%, #e0b800 100%);
  color: #001c5b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  border: none;
  transition: all 0.2s ease;
}

.home-hero .btn-primary:hover,
.add-cart-button:hover {
  background: linear-gradient(135deg, #e0b800 0%, #ffd100 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.quote-button {
  background: transparent;
  border: 1.5px solid #003087;
  color: #003087;
  transition: all 0.2s ease;
}

.quote-button:hover {
  background: #003087;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(11, 34, 78, 0.25);
}

.product-card {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(11, 34, 78, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
}

.product-image {
  aspect-ratio: 1.35;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-sku {
  display: inline-flex;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

.stock-badge {
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

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

@media (max-width: 980px) {
  .public-header-inner {
    grid-template-columns: 1fr auto;
  }

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

  .hero-image-wrap,
  .hero-image {
    min-height: 320px;
  }

  .hero-image-fade {
    width: 70%;
    background: linear-gradient(90deg, #003087 0%, rgba(11, 34, 78, 0.76) 38%, transparent 100%);
  }

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

@media (max-width: 768px) {
  .recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .logo-plate {
    width: auto;
    height: auto;
  }

  .logo-plate img {
    height: 40px;
    max-height: 40px;
  }

  .login-button {
    min-height: 42px;
    max-width: 168px;
    padding-inline: 0.7rem;
    font-size: 0.82rem;
  }

  .home-hero {
    border-radius: 0;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

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

.code-announcement-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 18px;
  background: linear-gradient(90deg, #fff0f3 0%, #fff8f8 100%);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.code-announcement-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(244, 63, 94, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 36px 24px, rgba(244, 63, 94, 0.04) 0 1px, transparent 1.5px);
  background-size: 72px 72px;
  opacity: 0.9;
  pointer-events: none;
}

.code-announcement-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.code-announcement-highlight {
  flex: 0 0 auto;
  color: #ef476f;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.code-announcement-text {
  min-width: 0;
}

.code-announcement-text h2 {
  margin: 0;
  color: #e11d48;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
}

.code-announcement-text p {
  margin-top: 0.3rem;
  color: #be185d;
  font-size: 0.88rem;
  line-height: 1.45;
}

.code-announcement-code {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.code-announcement-code span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 2px dashed rgba(244, 63, 94, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #e11d48;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0 1rem;
}

.code-announcement-code button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: #ffe4ea;
  color: #e11d48;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0 1rem;
  transition: transform 140ms ease, filter 140ms ease;
}

.code-announcement-code button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

@media (max-width: 768px) {
  .code-announcement-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .code-announcement-copy {
    align-items: flex-start;
  }

  .code-announcement-code {
    width: 100%;
  }

  .code-announcement-code span,
  .code-announcement-code button {
    flex: 1 1 0;
    width: 100%;
  }
}

/* --- Global Theme Integration (Dark by default, Light overrides) --- */

/* Default Dark Theme overrides for Home page elements */
html.theme-dark body {
  background: radial-gradient(circle at top right, #111a2e, #090d16) !important;
  color: #f8fafc !important;
}

html.theme-dark h2,
html.theme-dark h3 {
  color: #ffffff !important;
}

html.theme-dark .category-card,
html.theme-dark .category-chip {
  background: rgba(15, 23, 42, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .category-card h3,
html.theme-dark .category-chip strong {
  color: #ffffff !important;
}

html.theme-dark .category-card p,
html.theme-dark .category-chip span,
html.theme-dark .category-chip small {
  color: #94a3b8 !important;
}

html.theme-dark .category-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 77, 6, 0.03) 100%) !important;
  color: #e0b800 !important;
}

html.theme-dark .search-card .card-industrial,
html.theme-dark .home-search-panel {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .search-card input,
html.theme-dark .home-search-form input {
  background: rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html.theme-dark .home-search-copy h2 {
  background: #090d16 !important;
  color: #ffffff !important;
}

html.theme-dark .home-search-copy::before,
html.theme-dark .home-search-copy::after {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Theme overrides for Product Cards & Home Mobile */
html.theme-dark #home-mobile-wrapper {
  background: transparent !important;
}

html.theme-dark #categories a {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
html.theme-dark #categories a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}
html.theme-dark #categories a span.text-navy-950 {
  color: #f8fafc !important;
}

html.theme-dark .product-card {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html.theme-dark .product-card:hover {
  border-color: rgba(245, 158, 11, 0.4) !important;
}
html.theme-dark .product-image {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html.theme-dark .product-sku {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}
html.theme-dark .product-meta {
  color: #94a3b8 !important;
}
html.theme-dark .product-card .price {
  color: #f8fafc !important;
}

/* Light Theme overrides for Header and Home page elements */
html.theme-light body {
  background: #f8fafc !important;
  color: #0f172a !important;
}

html.theme-light .category-card {
  background: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
}

html.theme-light .category-card h3 {
  color: #0f172a !important;
}

html.theme-light .category-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 77, 6, 0.05) 100%) !important;
  color: #003087 !important;
}

html.theme-light .search-card .card-industrial {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
}

html.theme-light .search-card input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
