/* Tuds PEP-style listing + footer (loaded via view/common/header/after event) */
/* Brand button: amber on navy replaces Bootstrap blue so all these pass WCAG AA. */
.btn-primary {
  --bs-btn-bg: #f59e0b;
  --bs-btn-border-color: #f59e0b;
  --bs-btn-color: #0f3460;
  --bs-btn-hover-bg: #d97706;
  --bs-btn-hover-border-color: #d97706;
  --bs-btn-hover-color: #0f3460;
  --bs-btn-active-bg: #d97706;
  --bs-btn-active-border-color: #d97706;
  --bs-btn-active-color: #0f3460;
  --bs-btn-disabled-bg: #f59e0b;
  --bs-btn-disabled-border-color: #f59e0b;
  --bs-btn-disabled-color: #0f3460;
}

/* Top utility bar: bump muted links from gray-600 (#6c757d, 4.48:1) to gray-700. */
#top .list-inline-item > a,
#top .list-inline-item .dropdown > a,
#top .list-inline-item .dropdown > span {
  color: #495057;
}

.pep-listing {
  background: #fff;
}

.pep-crumbbar {
  background: #f4f6f8;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 12px 0 20px;
}

.pep-crumbbar .breadcrumb {
  margin: 0;
  font-size: 12px;
}

.pep-crumbbar .breadcrumb a {
  color: #0d6efd;
  text-decoration: none;
}

.pep-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pep-subcat {
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: #212529;
  text-decoration: none;
  background: #fff;
}

.pep-subcat:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.pep-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pep-next {
  background: #0d6efd;
  color: #fff;
  border-radius: 20px;
  padding: 8px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
}

.pep-next:hover {
  background: #0b5ed7;
  color: #fff;
}

.pep-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pep-sort label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

.pep-sort .form-select {
  border-radius: 20px;
  font-size: 12px;
  width: auto;
  border: 1px solid #212529;
}

/* Product cards: equal height, never clipped, graceful long titles */
#product-list > .col,
.pep-listing .row > .col {
  min-width: 0;
}
.pep-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  min-width: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.pep-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pep-card .image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  flex: none;
}

.pep-card .image a {
  display: block;
  width: 100%;
  height: 100%;
}

.pep-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pep-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px 8px 8px 2px;
  color: #fff;
  z-index: 2;
}

.pep-new {
  background: #ffc107;
  color: #212529;
}

.pep-sale {
  background: #0d6efd;
  top: 38px;
}

.pep-card .content {
  padding: 0 16px 16px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pep-card .description {
  min-width: 0;
}

.pep-card h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 8px 0 4px;
  /* Two-line clamp: equal rows for 1- and 2-line titles, never clipped CTAs */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  overflow-wrap: anywhere;
}

.pep-card h4 a {
  color: #212529;
  text-decoration: none;
}

.pep-card .price {
  margin: 0 0 4px;
}

.pep-card form {
  margin-top: auto;
}

.pep-card .price-new {
  font-size: 14px;
  font-weight: 800;
  color: #000;
}

.pep-card .price-old {
  font-size: 12px;
  color: #6c757d;
  text-decoration: line-through;
}

.pep-card .pep-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

/* Undo the legacy absolute bottom bar: actions sit centered inside the card. */
.pep-card .button {
  position: static;
  width: auto;
}

.pep-card .pep-actions button {
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 9px;
  padding: 7px 11px;
  color: #6c757d;
  width: auto;
}

.pep-card .pep-actions button {
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  color: #6c757d;
}

.pep-card .pep-actions button:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

/* Bottom row */
.pep-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 30px;
  font-size: 12px;
  color: #6c757d;
}

.pep-pagination .pagination {
  margin: 0;
  gap: 6px;
}

.pep-pagination .page-link {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: #212529;
  font-size: 12px;
  min-width: 30px;
  text-align: center;
}

.pep-pagination .page-item.active .page-link {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Footer: dark closing section with structured columns */
.pep-footer {
  background: #0f3460;
  color: #dbe4ee;
  padding: 44px 0 0;
  margin-top: 40px;
  font-size: 13px;
}

.pep-footer h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}

.pep-footer ul {
  padding: 0;
}

.pep-footer ul li {
  margin-bottom: 8px;
}

.pep-footer a {
  color: #dbe4ee;
  text-decoration: none;
}

.pep-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.pep-payline,
.pep-news {
  font-size: 12px;
  color: #aebfd2;
}

.pep-news a {
  color: #fff;
  font-weight: 700;
}

.pep-social {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.pep-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.pep-social a:hover {
  background: #fff;
  color: #0f3460;
  text-decoration: none;
}

.pep-paybadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pep-paybadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 12px;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  min-height: 36px;
}

.pep-paybadge i {
  font-size: 14px;
}

.pep-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 24px;
  padding: 16px 0 20px;
  font-size: 12px;
  color: #aebfd2;
}

@media (max-width: 767px) {
  .pep-bottombar {
    flex-direction: column;
    text-align: center;
  }
}

/* Phase 6: visible keyboard focus (WCAG 2.1 AA) */.pep-card a:focus-visible,
.pep-subcat:focus-visible,
.pep-next:focus-visible,
.pep-pagination .page-link:focus-visible,
.pep-sort .form-select:focus-visible,
#tuds-suggest a:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* Live search suggestions */
#tuds-suggest {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

#tuds-suggest img {
  border-radius: 6px;
}

/* Wave 1: footer payment badges */
.pep-paybadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pep-paybadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 6px 12px;
  color: #fff;
}

.pep-pay-airtel { background: #e40000; }
.pep-pay-mpamba { background: #ffcc00; color: #212529; }
.pep-pay-layby { background: #0f3460; }
.pep-pay-cash { background: #198754; }

/* Wave 2: product page */
.tuds-layby-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f0f6ff;
  border: 1px solid #b6d4fe;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.tuds-layby-box i {
  color: #0f3460;
  font-size: 1.4rem;
  margin-top: 2px;
}

.tuds-paymini {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #495057;
  margin-bottom: 8px;
}

.tuds-paymini i {
  color: #0f3460;
}

.tuds-trustmini {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
}

#button-buynow {
  border-radius: 8px;
  font-weight: 700;
}

/* Wave 2: free-shipping progress in mini-cart drawer */
.tuds-shipbar {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.tuds-shipbar .progress {
  height: 8px;
  margin-top: 6px;
}

/* Wave 4: CLS guards + skeleton loaders */
.pep-card .image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pep-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pep-skeleton {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  aspect-ratio: 1;
  background: linear-gradient(100deg, #f1f3f5 40%, #e2e6ea 50%, #f1f3f5 60%);
  background-size: 200% 100%;
  animation: pep-shimmer 1.2s infinite;
}

@keyframes pep-shimmer {
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pep-skeleton {
    animation: none;
  }
  .tuds-dept-card:hover {
    transform: none;
  }
}

/* Wave 3: visual payment cards */
.tuds-paypick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tuds-paypick i {
  font-size: 1.5rem;
  margin-top: 2px;
  color: #0f3460;
}

.tuds-paypick strong {
  display: block;
  font-size: 14px;
}

.tuds-paypick small {
  display: block;
  font-size: 12px;
  color: #6c757d;
}

.tuds-payoption {
  margin-bottom: 8px;
  padding-left: 0;
}

.tuds-payoption .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tuds-payoption .form-check-input:checked + label .tuds-paypick,
.tuds-payoption .form-check-input:focus-visible + label .tuds-paypick {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

.tuds-pick-airtel i { color: #e40000; }
.tuds-pick-mpamba i { color: #b58900; }
.tuds-pick-layby i { color: #0f3460; }
.tuds-pick-cash i { color: #198754; }

/* Wave 3: OPC trust badges */
.tuds-checktrust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6c757d;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.tuds-checktrust i {
  color: #198754;
}

/* Wave 3: success reference box */
.tuds-refbox {
  background: #f0f6ff;
  border: 1px solid #b6d4fe;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.tuds-refbox code {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f3460;
}

/* Wave 1: sticky smart header + mini-cart drawer */
#tuds-site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 1px 0 #e9ecef;
  transition: box-shadow 0.2s;
}

#tuds-site-header.tuds-shrunk {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#tuds-site-header.tuds-shrunk #logo img {
  max-height: 40px;
  width: auto;
}

#tuds-site-header #logo img {
  max-height: 64px;
  width: auto;
  transition: max-height 0.2s;
}

/* Header row alignment: kill utility margins inside the flex row. */
#tuds-site-header form.tuds-search {
  margin-bottom: 0;
}

#tuds-site-header #cart {
  margin-bottom: 0;
}

/* Search and cart share one baseline: kill the form's bottom margin so both center alike. */
#tuds-site-header .tuds-search {
  margin-bottom: 0;
}

/* One shared control height so search and cart centers (and tops) align. */
#tuds-site-header .tuds-search .tuds-search-input,
#tuds-site-header .tuds-search .btn,
#cart .btn {
  min-height: 50px;
}

#tuds-site-header.tuds-shrunk .tuds-mobile-searchrow {
  display: none;
}

/* Center the mega menu items on desktop. */
@media (min-width: 992px) {
  #menu #navbar-menu {
    justify-content: center;
  }
}

/* Full-width flat menu bar (taller, square, no gradient). */
#menu {
  background-color: #229ac8;
  background-image: none;
  border: none;
  border-radius: 0;
  min-height: 54px;
  padding: 0;
}

#menu .container {
  padding-left: 12px;
  padding-right: 12px;
}

#menu .navbar-nav > li > a {
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 600;
}

#category {
  line-height: 54px;
  color: #fff;
  font-weight: 600;
}

#menu .navbar-toggler {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

#menu .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

#tuds-cart-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: min(360px, 92vw);
  height: 100dvh;
  background: #fff;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease-out;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

#tuds-cart-drawer.open {
  right: 0;
}

.tuds-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
}

#tuds-drawer-close {
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #6c757d;
  min-width: 44px;
  min-height: 44px;
}

.tuds-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  list-style: none;
}

.tuds-drawer-body .text-center {
  color: #6c757d;
}

.tuds-drawer-foot {
  padding: 12px 16px;
  border-top: 1px solid #e9ecef;
}

#tuds-drawer-veil {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1055;
  display: none;
}

#tuds-drawer-veil.open {
  display: block;
}

/* Missing pieces: mobile bottom nav */
#tuds-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

#tuds-bottomnav a,
#tuds-bottomnav button {
  flex: 1;
  border: none;
  background: none;
  color: #212529;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  min-height: 48px;
  justify-content: center;
  position: relative;
}

#tuds-bottomnav i {
  font-size: 1.2rem;
}

#tuds-cart-count {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  border-radius: 10px;
  padding: 0 6px;
  font-weight: 700;
}

@media (max-width: 991px) {
  #tuds-bottomnav {
    display: flex;
  }
  body {
    padding-bottom: 64px;
  }
}

/* Bottom sheets (categories + filters) */
#tuds-cats-sheet,
#pep-filter-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 75dvh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 1060;
  transform: translateY(105%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

#tuds-cats-sheet.open,
#pep-filter-sheet.open {
  transform: translateY(0);
}

.tuds-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
}

.tuds-sheet-head button {
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  color: #6c757d;
}

.tuds-sheet-body {
  overflow-y: auto;
  padding: 12px 16px;
}

.tuds-sheet-foot {
  padding: 12px 16px;
  border-top: 1px solid #e9ecef;
}

.tuds-sheet-link {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f3f5;
  color: #212529;
  text-decoration: none;
  font-weight: 600;
}

#pep-filter-sheet h6 {
  font-size: 12px;
  text-transform: uppercase;
  color: #6c757d;
}

#pep-filter-sheet .pep-sort {
  margin-bottom: 8px;
}

#pep-filter-sheet .pep-subcats {
  margin-bottom: 0;
}

/* Mega menu (desktop) */
@media (min-width: 992px) {
  #menu .tuds-mega-item {
    position: static;
  }
  #menu .tuds-mega-panel {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 12px 12px;
    padding: 20px;
  }
  .tuds-mega-inner {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .tuds-mega-promo {
    flex: 0 0 240px;
    text-decoration: none;
    color: #212529;
    font-weight: 700;
  }
  .tuds-mega-promo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .tuds-mega-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 16px;
    align-content: start;
  }
  .tuds-mega-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px !important;
    border-radius: 8px;
  }
  .tuds-mega-link:hover {
    background: #f8f9fa;
  }
  .tuds-mega-link img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
  }
}


/* 500 error page */
.tuds-error-box {
  max-width: 640px;
  margin: 48px auto 72px;
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.tuds-error-code {
  font-size: 3.4rem;
  font-weight: 800;
  color: #0F3460;
  line-height: 1;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.tuds-error-box h1 { color: #0F3460; font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.tuds-error-box p { color: #64748b; line-height: 1.7; margin-bottom: 24px; }
.tuds-error-actions .btn { min-width: 150px; margin: 4px; border-radius: 999px; }
.tuds-error-actions .btn-primary { background: #F59E0B; border-color: #F59E0B; color: #0F3460; font-weight: 600; }
.tuds-error-actions .btn-primary:hover { background: #d97706; border-color: #d97706; }

/* ============ Modern shopfront polish (one visual system) ============ */
/* Retire the legacy absolute-position footer hack: normal flow, footer pinned
   to the viewport bottom on short pages instead of overlapping content. */
#container {
  position: static;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

#content,
#column-left,
#column-right {
  padding-bottom: 0;
}

footer.pep-footer {
  position: static;
}

/* Canvas: soft slate backdrop, ink headings, calm rhythm. */
body {
  background: #f4f6f9;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: #0f172a; }

/* Dark sections keep light headings (the rule above must not override
   their inherited white). */
.tuds-hero h1,
.tuds-hero h2,
.tuds-hero h3,
.tuds-newsletter h1,
.tuds-newsletter h2,
.tuds-newsletter h3 {
  color: #fff;
}

main > .container,
#product-info.container {
  padding-top: 8px;
}

/* Breadcrumb as a light pill trail. */
.pep-crumbbar {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pep-crumbbar .breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Top utility bar ---------- */
#top {
  background: #0f3460;
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 5px;
}

#top ul.list-inline { margin-bottom: 0; }

#top .list-inline-item > a,
#top .list-inline-item .dropdown > a,
#top .list-inline-item .dropdown > span {
  color: #cbd5e1;
  transition: color 0.15s;
}

#top .list-inline-item > a:hover,
#top .list-inline-item .dropdown > a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Header: search pill, cart pill ---------- */
#tuds-site-header {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

#tuds-site-header #logo img {
  max-height: 56px;
}

.tuds-search .tuds-search-input {
  border-radius: 999px 0 0 999px;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.tuds-search .tuds-search-input:focus {
  background: #fff;
  border-color: #0f3460;
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

.tuds-search .btn {
  border-radius: 0 999px 999px 0;
  border: 1.5px solid #e2e8f0;
  border-left: none;
  background: #0f3460;
  color: #fff;
  padding-left: 20px;
  padding-right: 20px;
}

.tuds-search .btn:hover {
  background: #0b2547;
  color: #fff;
}

#cart .btn {
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 52, 96, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}

#cart .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 52, 96, 0.24);
}

/* ---------- Menu bar states ---------- */
#menu .navbar-nav > li > a {
  color: #fff;
  border-radius: 10px;
  transition: background 0.15s;
}

#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li.show > a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Top-level links that reuse .dropdown-item must stay white on the blue bar,
   including hover (Bootstrap would flip them dark). */
#menu .navbar-nav > li > a.dropdown-item,
#menu .navbar-nav > li > a.dropdown-item:hover,
#menu .navbar-nav > li > a.dropdown-item:focus {
  color: #fff;
  background: transparent;
}

#menu .navbar-nav > li > a.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.16);
}

#menu .tuds-mega-panel {
  border: 1px solid #e6eaf0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 22px;
}

.tuds-mega-promo span {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  color: #0f3460;
}

.tuds-mega-link span {
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
}

.tuds-mega-link:hover span {
  color: #0f3460;
}

/* ---------- Hero glow + type ---------- */
.tuds-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 52, 96, 0.22);
}

.tuds-hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.tuds-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(34, 154, 200, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.tuds-hero-inner { position: relative; z-index: 1; }

.tuds-hero-inner h1 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.tuds-hero .tuds-cta {
  transition: transform 0.15s, box-shadow 0.15s;
}

.tuds-hero .tuds-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tuds-hero-photos img {
  transition: transform 0.25s ease;
}

.tuds-hero-photos img:hover {
  transform: scale(1.03);
}

/* ---------- Section headings with amber rule ---------- */
.tuds-depts > h2,
.tuds-features > h2,
.tuds-testimonials > h2,
.tuds-payments > h2,
.tuds-newsletter > h2 {
  position: relative;
  padding-bottom: 12px;
}

.tuds-depts > h2::after,
.tuds-features > h2::after,
.tuds-testimonials > h2::after,
.tuds-payments > h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 99px;
  background: #f59e0b;
}

.tuds-newsletter > h2::after { background: rgba(255, 255, 255, 0.5); }

/* ---------- Department cards: lift + zoom ---------- */
.tuds-dept-card {
  border-color: #e6eaf0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tuds-dept-img img {
  transition: transform 0.3s ease;
}

.tuds-dept-card:hover {
  transform: translateY(-3px);
  border-color: #0f3460;
  box-shadow: 0 10px 24px rgba(15, 52, 96, 0.14);
}

.tuds-dept-card:hover .tuds-dept-img img {
  transform: scale(1.05);
}

.tuds-dept-text h3 {
  color: #0f172a;
  font-weight: 700;
}

.tuds-dept-arrow { color: #f59e0b; }

/* ---------- Product cards: lift, zoom, refined actions ---------- */
.pep-card {
  border-color: #e6eaf0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pep-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 52, 96, 0.13);
  border-color: #cbd5e1;
}

.pep-card .image img {
  transition: transform 0.3s ease;
}

.pep-card:hover .image img {
  transform: scale(1.05);
}

.pep-badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.04em;
}

.pep-card h4 {
  font-size: 12px;
}

.pep-card h4 a {
  transition: color 0.15s;
}

.pep-card h4 a:hover {
  color: #0f3460;
}

.pep-card .price-new {
  font-size: 16px;
  color: #0f3460;
}

.pep-card .pep-actions button {
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 52px;
  min-height: 48px;
  font-size: 1.05rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.pep-card .pep-actions button:hover {
  border-color: #0f3460;
  background: #0f3460;
  color: #fff;
  transform: translateY(-1px);
}

.pep-card .pep-actions button:active {
  transform: translateY(0);
}

/* ---------- Buttons + inputs, one voice ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary {
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.45);
}

.btn:focus-visible,
.pep-card .pep-actions button:focus-visible,
.tuds-dept-card:focus-visible,
#tuds-bottomnav a:focus-visible,
#tuds-bottomnav button:focus-visible {
  outline: 3px solid #0f3460;
  outline-offset: 2px;
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #dbe1ea;
}

.form-control:focus,
.form-select:focus {
  border-color: #0f3460;
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

/* ---------- Trust / features / testimonials / payments ---------- */
.tuds-feature-card,
.tuds-payments,
.tuds-testimonials,
.tuds-quote {
  border-color: #e6eaf0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tuds-feature-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tuds-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 52, 96, 0.1);
}

.tuds-feature-card h3 {
  color: #0f3460;
}

.tuds-trust {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tuds-trust-item i {
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  flex: none;
  font-size: 1.15rem;
  background: #e8eef7;
  border-radius: 12px;
}

.tuds-trust-item strong {
  color: #0f172a;
}

.tuds-quote {
  border-left: 3px solid #f59e0b;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tuds-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 52, 96, 0.1);
}

.tuds-pay-card {
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tuds-pay-card:hover {
  transform: translateY(-2px);
  border-color: #0f3460;
  box-shadow: 0 8px 18px rgba(15, 52, 96, 0.1);
}

/* ---------- Newsletter ---------- */
.tuds-newsletter {
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 52, 96, 0.22);
}

.tuds-newsletter form .form-control {
  border-radius: 999px;
  padding: 12px 22px;
  border: none;
}

.tuds-newsletter form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5);
}

.tuds-newsletter form .btn {
  border-radius: 999px;
  padding: 12px 30px;
}

/* ---------- Footer refinement ---------- */
.pep-footer {
  padding-top: 52px;
}

.pep-footer h5 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pep-footer ul li {
  margin-bottom: 10px;
}

.pep-footer a {
  transition: color 0.15s, padding-left 0.15s;
}

.pep-footer a:hover {
  padding-left: 4px;
}

.pep-social a {
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.pep-social a:hover {
  transform: translateY(-2px);
}

.pep-paybadge {
  transition: transform 0.15s;
}

.pep-paybadge:hover {
  transform: translateY(-2px);
}

/* ---------- Category listing chrome ---------- */
.pep-sort label {
  color: #0f3460;
}

.pep-sort .form-select {
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pep-subcat {
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pep-subcat:hover {
  border-color: #0f3460;
  color: #0f3460;
  background: #eef3fa;
}

.pep-pagination .page-link {
  border-color: #e6eaf0;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}

.pep-pagination .page-item.active .page-link {
  background: #0f3460;
  border-color: #0f3460;
}

/* ---------- Product page ---------- */
.tuds-gallery img {
  border-radius: 14px;
  border: 1px solid #e6eaf0;
}

#product-info h1 {
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #0f172a;
}

#product-info .price-new {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f3460;
}

#product-info .price-old {
  font-size: 1.05rem;
}

#input-quantity {
  border-radius: 10px;
  text-align: center;
}

#button-cart {
  border-radius: 12px;
  padding: 12px 32px;
}

#button-buynow {
  border-radius: 12px !important;
  padding: 12px 24px;
}

.tuds-layby-box {
  border-radius: 12px;
}

.nav-tabs {
  border-bottom: 2px solid #e6eaf0;
  gap: 4px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  color: #64748b;
  font-weight: 600;
  padding: 10px 20px;
}

.nav-tabs .nav-link:hover {
  color: #0f3460;
  background: #eef3fa;
}

.nav-tabs .nav-link.active {
  color: #0f3460;
  background: transparent;
  box-shadow: inset 0 -3px 0 #f59e0b;
}

.tab-content {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 24px;
  margin-bottom: 32px;
}

/* ---------- Tables + drawer + sheets ---------- */
.table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}

.table tbody td {
  vertical-align: middle;
  font-size: 13.5px;
}

#tuds-cart-drawer {
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.18);
}

.tuds-drawer-head strong {
  color: #0f3460;
}

#tuds-bottomnav {
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

#tuds-cats-sheet,
#pep-filter-sheet {
  box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.2);
}

.tuds-sheet-link {
  font-size: 14px;
  transition: background 0.15s, padding-left 0.15s;
}

.tuds-sheet-link:hover {
  background: #f1f5f9;
  padding-left: 10px;
}

/* ---------- Mobile header fit: logo + cart share one exact row ---------- */
@media (max-width: 767px) {
  /* Base theme centers the logo; pull it left so it starts exactly
     where the full-width search bar below starts. */
  #tuds-site-header #logo {
    text-align: left;
    margin: 0;
  }

  #tuds-site-header #logo img {
    max-height: 46px;
  }

  /* Long cart totals ("2 item(s) - MK ...") must truncate inside their
     column instead of overflowing the viewport. */
  #cart .btn {
    font-size: 12.5px;
    padding: 10px 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---------- Motion manners ---------- */@media (prefers-reduced-motion: reduce) {
  .tuds-dept-card,
  .tuds-dept-card:hover,
  .tuds-dept-img img,
  .pep-card,
  .pep-card:hover,
  .pep-card .image img,
  .tuds-feature-card,
  .tuds-quote,
  .tuds-pay-card,
  .tuds-hero-photos img,
  .btn-primary,
  #menu .navbar-nav > li > a,
  #cart .btn {
    transform: none;
    transition: none;
  }
}
