@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --dl-black: #000000;
  --dl-bg-main: #1a1a1a;
  --dl-bg-top: #0a0a0a;
  --dl-bg-search: #282828;
  --dl-bg-tile: #2b2b2b;
  --dl-bg-footer: #222222;
  --dl-bg-orders: #171717;
  --dl-bg-popup: #1f1f1f;
  --dl-bg-footer-btn: #3b3b3b;
  --dl-green: #67a739;
  --dl-green-hover: #59c70b;
  --dl-green-40: rgba(97, 155, 55, 0.4);
  --dl-border: #3e3d3d;
  --dl-border-line: rgba(59, 59, 59, 1);
  --dl-text: #ffffff;
  --dl-text-muted: #b2b2b2;
  --dl-text-dim: #808080;
  --dl-text-subtitle: #9b9b9b;
  --dl-text-orders: #4f4f4f;
  --dl-text-news-date: #888888;
  --dl-orange: #f7971d;
  --dl-orange-hover: #ffc756;
  --dl-container: 1200px;
  --header-top: 64px;
  --header-bottom: 50px;
  --header-total: 114px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --font-sans: Lato, sans-serif;
  --font-inter: Inter, system-ui, sans-serif;
  --text-base: 16px;
  --leading-base: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  background: var(--dl-black);
  color: #f7f7f7;
  line-height: var(--leading-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

.font-inter {
  font-family: var(--font-inter);
}

.font-lato {
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--dl-container), calc(100% - 32px));
  margin: 0 auto;
}

.page-wrap {
  min-height: 100vh;
}

/* Fixed header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header-top {
  height: var(--header-top);
  background: var(--dl-black);
  display: flex;
  align-items: center;
}

.header-top-wrap,
.header-bottom-wrap {
  position: relative;
  height: 100%;
}

.header-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.header-top-line {
  pointer-events: none;
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 1px;
  background: var(--dl-border-line);
}

.header-top-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

.header-logo-wrap {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-currency {
  margin-right: 4px;
}

.cart-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--dl-border);
  transition: filter 0.2s;
}

.cart-total-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  color: var(--dl-border);
  transition: filter 0.2s;
}

.cart-icon-link:hover,
.cart-total-link:hover {
  filter: brightness(1.25);
}

.cart-icon-link svg {
  width: 29px;
  height: 29px;
}

.cart-total {
  font-size: 12px;
  font-weight: 500;
  color: var(--dl-border);
  line-height: 1.2;
}

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  background: var(--dl-green-40);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.header-login:hover {
  background: var(--dl-green-hover);
}

.header-login svg {
  width: 16px;
  height: 16px;
}

.header-logo img {
  height: 30px;
  width: auto;
}

.header-bottom {
  height: var(--header-bottom);
  background: var(--dl-black);
  border-top: 1px solid transparent;
  position: relative;
  display: flex;
  align-items: center;
}

.header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.header-search {
  position: relative;
  width: 172px;
  height: 32px;
  flex-shrink: 0;
  background: var(--dl-bg-search);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.header-search:focus-within {
  border-color: var(--dl-green);
}

.header-search input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 2.3rem 0 1rem;
  color: var(--dl-text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  caret-color: var(--dl-text-muted);
}

.header-search input::placeholder {
  color: var(--dl-text-muted);
}

.header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--dl-text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  margin-top: 8px;
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--dl-green-hover);
}

.nav-item::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  margin-top: 4px;
  background: var(--dl-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-item:hover::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 300px;
  background: var(--dl-black);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  text-transform: none;
  z-index: 100;
  pointer-events: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

.nav-dropdown-menu a:hover {
  color: #555;
}

.video-hub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 20px;
  margin-left: 8px;
  background: var(--dl-orange);
  color: #000;
  font-size: 12px;
  font-weight: 400;
  border-radius: 2px;
  text-transform: none;
}

.nav-dropdown-menu a:hover .video-hub-badge {
  background: var(--dl-orange-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-lg);
  background: var(--dl-green);
  color: #fff;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.btn-support:hover {
  background: var(--dl-green-hover);
}

.btn-support img {
  width: 20px;
  height: 24px;
}

.orders-box {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 2px 10px;
  gap: 13px;
  background: var(--dl-bg-orders);
  border-radius: var(--radius-lg);
}

.orders-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dl-text-orders);
  transition: color 0.2s;
}

.orders-item:hover {
  color: #fff;
}

.orders-count {
  font-size: 26px;
  line-height: 1;
}

.orders-label {
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.orders-divider {
  width: 1px;
  height: 60%;
  background: var(--dl-text-orders);
}

/* Main */
.main-content {
  padding-top: var(--header-total);
}

.main-inner {
  background: var(--dl-bg-main);
  color: #f7f7f7;
  min-height: calc(100vh - var(--header-total));
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
}

.main-container {
  padding: 32px 16px;
}

.banner-wrap {
  text-align: center;
  position: relative;
  margin-top: 30px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #050605;
}

.banner-wrap video {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  aspect-ratio: 1170 / 600;
}

.spacer-32 {
  height: 32px;
}

.text-primary {
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

/* Tiles block - exact DL */
.dl-tiles-block .tiles-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 32px;
}

.tiles-top__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.tiles-top__title {
  margin: 0;
  color: #fff;
  line-height: 1.2;
  font-weight: 800;
  font-size: 1.625rem;
  font-family: var(--font-sans);
}

.tiles-top__subtitle {
  margin: 0;
  color: var(--dl-text-subtitle);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
  font-family: var(--font-sans);
}

.tiles-top__catalog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
  transition: opacity 0.2s;
}

.tiles-top__catalog:hover {
  opacity: 0.85;
}

.tiles-top__catalog-arrow {
  font-size: 24px;
}

.dl-tiles {
  --grid-gap: 10px;
  --card-r: 4px;
  --card-gap: 4px;
  --pad-l: 16px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

.dl-tile {
  background: var(--dl-bg-tile);
  border-radius: var(--card-r);
  padding-left: var(--pad-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--card-gap);
  overflow: hidden;
  height: 108px;
  transition: filter 0.2s, transform 0.2s;
}

.dl-tile:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.dl-tile__title {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
  margin: 0;
  white-space: pre-line;
}

.dl-tile__img {
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

/* News */
.news-heading {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
}

.news-carousel {
  position: relative;
  padding: 10px 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-slide {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.news-slide h3 {
  margin: 0 0 12px;
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.375;
  min-height: 70px;
}

.news-slide h3 a:hover {
  text-decoration: underline;
  filter: brightness(1.25);
}

.news-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dl-text-news-date);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.news-date svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.news-content {
  max-height: 400px;
  overflow-y: auto;
  color: #ccc;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  padding-right: 8px;
}

.news-content p {
  margin: 0 0 12px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: capitalize;
  margin-top: 16px;
}

.read-more-link:hover {
  filter: brightness(1.25);
}

.read-more-link span:last-child {
  margin-left: 8px;
  font-size: 30px;
}

/* Footer */
.site-footer {
  background: var(--dl-bg-footer);
  padding: 20px 0;
  min-height: 157px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand img {
  height: 24px;
  width: auto;
}

.btn-support-footer {
  width: 215px;
  height: 40px;
  background: var(--dl-bg-footer-btn);
  border-radius: var(--radius-md);
  font-size: 16px;
}

.btn-support-footer:hover {
  background: var(--dl-green-hover);
}

.footer-menus {
  display: grid;
  grid-auto-flow: column;
  gap: 20px;
}

.footer-col-title {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 8px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: block;
  color: var(--dl-text-dim);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  padding: 2px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-right {
  text-align: right;
  display: grid;
  gap: 16px;
  justify-items: end;
}

.footer-right a {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
}

.footer-right a:hover {
  color: var(--dl-green);
}

.payment-logos img {
  display: inline-block;
  margin: 8px 6px;
  max-width: 34px;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
}

/* WhatsApp float (Kuram-style) */
.dg-wa-float {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 1000;
  pointer-events: none;
}

.dg-wa-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}

.dg-wa-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.dg-wa-toggle svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.dg-wa-toggle-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: dg-wa-ping 2s ease-out 2;
  pointer-events: none;
}

@keyframes dg-wa-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Cookie */
#privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: none;
}

#privacy-popup.is-visible {
  display: block;
}

#privacy-popup .popup-content {
  background: var(--dl-bg-popup);
  border-top: 1px solid var(--dl-border);
  padding: 16px 24px;
  position: relative;
}

.popup-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--dl-container);
  margin: 0 auto;
}

.popup-text {
  margin: 0;
  color: #ccc;
  font-size: 14px;
}

.privacy-link {
  color: var(--dl-green);
}

.accept-button {
  background: var(--dl-green);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
}

.accept-button:hover {
  background: var(--dl-green-hover);
}

.close-button {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

/* Back to top */
#back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  /* sits below WhatsApp float */
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f1f1f;
  border: 1px solid #2f2f2f;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Catalog page */
.catalog-page .page-hero {
  padding: 24px 0 8px;
}

.catalog-page .breadcrumb {
  color: var(--dl-text-dim);
  font-size: 14px;
  margin-bottom: 12px;
}

.catalog-page .breadcrumb a:hover {
  color: var(--dl-green);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding-bottom: 48px;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-total) + 16px);
  align-self: start;
}

.catalog-sidebar h2 {
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 400;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sidebar-list a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dl-border);
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s;
}

.sidebar-list li:last-child a {
  border-bottom: none;
}

.sidebar-list a:hover,
.sidebar-list a.is-active {
  background: rgba(103, 167, 57, 0.1);
  color: var(--dl-green-hover);
  padding-left: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--dl-bg-tile);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: filter 0.2s;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--dl-orange);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-card:hover {
  filter: brightness(1.1);
}

.product-card-image {
  aspect-ratio: 4/3;
  background: #252525;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.product-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(103, 167, 57, 0.15);
  color: var(--dl-green);
  border: 1px solid rgba(103, 167, 57, 0.25);
}

.product-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  color: #fff;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--dl-border);
}

.product-price {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--dl-green);
}

.product-price-old {
  font-size: 13px;
  color: var(--dl-text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}

.btn-learn {
  background: var(--dl-green);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-learn:hover {
  background: var(--dl-green-hover);
}

/* Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(7px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(450px, 80vw);
  height: 100%;
  background: var(--dl-bg-top);
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav-panel a {
  display: block;
  padding: 12px 0;
  color: var(--dl-green);
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.mobile-nav-panel a:hover {
  color: var(--dl-green-hover);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  margin-bottom: 16px;
  cursor: pointer;
}

@media (min-width: 420px) {
  .dl-tiles {
    --grid-gap: 15px;
  }
}

@media (min-width: 641px) {
  .dl-tiles {
    --card-r: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .news-carousel {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .dl-tiles {
    --card-gap: 5px;
    --pad-l: 20px;
  }
}

@media (max-width: 1024px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .footer-right {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .dl-tiles-block .tiles-top {
    gap: 8px;
    padding-bottom: 20px;
  }

  .tiles-top__subtitle,
  .tiles-top__catalog {
    font-size: 20px;
  }

  .header-login span {
    display: none;
  }

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

  .footer-menus {
    grid-auto-flow: row;
  }
}

@media (max-width: 600px) {
  .header-bottom-inner {
    justify-content: flex-end;
  }
}

/* E-commerce + mobile header */
.cart-badge {
  position: absolute;
  top: -0.1rem;
  right: -0.001rem;
  width: 12px;
  height: 12px;
  min-width: 12px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 7px;
  font-weight: 600;
  line-height: 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-mobile {
  display: none;
}

.mobile-topbar {
  height: 60px;
  background: var(--dl-bg-top);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mobile-logo img {
  height: 28px;
  width: auto;
}

.mobile-logo-short {
  display: none;
}

.mobile-topbar-scroll {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s, max-height 0.25s;
}

.mobile-topbar.is-scrolled .mobile-topbar-scroll {
  opacity: 1;
  max-height: 40px;
}

.mobile-topbar.is-scrolled .mobile-logo-full {
  display: none;
}

.mobile-topbar.is-scrolled .mobile-logo-short {
  display: block;
}

.mobile-search {
  flex: 1;
  width: auto;
}

.btn-support-sm {
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.btn-support-sm span {
  display: none;
}

.mobile-menu-open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-open span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
}

.mobile-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: var(--dl-green-40);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.mobile-currency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid var(--dl-border);
  border-bottom: 1px solid var(--dl-border);
}

.mobile-currency-label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--dl-text-muted);
  text-transform: uppercase;
}

.currency-switch {
  display: flex;
  gap: 4px;
}

.currency-btn {
  width: 36px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dl-border);
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.currency-btn.currency-active {
  background: var(--dl-green);
  border-color: var(--dl-green);
  color: #fff;
}

.currency-btn.currency-inactive {
  color: var(--dl-text-muted);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-accordion-btn {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-accordion-panel {
  display: none;
  padding-left: 12px;
}

.mobile-accordion-panel.is-open {
  display: block;
}

.mobile-cats-title {
  margin: 20px 0 8px;
  font-size: 12px;
  color: var(--dl-text-muted);
  text-transform: uppercase;
}

.mobile-cats a {
  font-size: 14px !important;
  padding: 8px 0 !important;
}

.mobile-video-hub {
  display: flex;
  align-items: center;
  gap: 6px;
}

.overflow-hidden {
  overflow: hidden;
}

/* Account / cart / content pages */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--dl-text-muted);
}

.breadcrumb a {
  color: var(--dl-green);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--dl-green-hover);
}

.breadcrumb-sep {
  color: var(--dl-text-dim);
}

.account-page-header {
  margin-bottom: 32px;
}

.account-page-header .text-primary {
  margin-bottom: 8px;
}

.account-page-lead {
  margin: 0;
  max-width: 560px;
  color: var(--dl-text-muted);
  font-size: 16px;
  line-height: 1.5;
}

.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.account-sidebar-card {
  background: var(--dl-bg-footer);
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
}

.account-sidebar-label {
  margin: 0 0 12px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dl-text-dim);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--dl-text-muted);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.account-nav a.is-active {
  background: rgba(103, 167, 57, 0.1);
  color: var(--dl-green);
  border-left-color: var(--dl-green);
}

.account-nav a:hover:not(.is-active) {
  background: var(--dl-bg-tile);
  color: #fff;
}

.account-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--dl-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.account-logout:hover {
  border-color: rgba(255, 120, 100, 0.45);
  color: #ffb4ae;
  background: rgba(58, 20, 20, 0.35);
}

.auth-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.auth-card {
  background: var(--dl-bg-tile);
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-card-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dl-border);
}

.auth-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
}

.auth-card-head p {
  margin: 0;
  font-size: 14px;
  color: var(--dl-text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dl-text-muted);
}

.form-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--dl-bg-search);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--dl-bg-search);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-field select {
  height: 44px;
  cursor: pointer;
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--dl-text-dim);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--dl-green);
  background: #2e2e2e;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dl-text-muted);
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--dl-green);
}

.btn-block {
  width: 100%;
}

.btn-auth {
  height: 44px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.btn-auth-outline {
  background: transparent;
  border: 2px solid var(--dl-green);
  color: var(--dl-green);
}

.btn-auth-outline:hover {
  background: var(--dl-green);
  color: #fff;
}

.auth-benefits {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--dl-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-benefits li {
  margin-bottom: 4px;
}

.auth-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--dl-green);
  white-space: nowrap;
}

.auth-link:hover {
  color: var(--dl-green-hover);
}

.auth-support-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--dl-bg-footer);
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--dl-text-muted);
}

.auth-support-link {
  margin-left: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--dl-green);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-support-link:hover {
  color: var(--dl-green-hover);
}

/* MK-style auth portal (Diesel Garage colors) */
body.is-auth-guest .auth-breadcrumb { margin-bottom: 12px; }
body.is-auth-guest #account-logged-header { display: none; }
body.is-auth-guest .account-layout--guest {
  display: block;
  max-width: none;
}
body.is-auth-guest .account-sidebar { display: none !important; }
.auth-main .main-inner { padding-top: 8px; }

.auth-portal {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 220px);
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dl-bg-tile);
}

.auth-hero {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 55%, rgba(0, 0, 0, 0.92) 100%),
    url("../assets/gallery/ecu-workstation.jpg") center / cover no-repeat;
}
.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
.auth-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 36px 32px;
}
.auth-kicker {
  margin: 0 0 10px;
  color: var(--dl-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-hero-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.auth-hero-lead {
  margin: 0;
  max-width: 420px;
  color: var(--dl-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 32px 24px;
  background:
    radial-gradient(circle at top right, rgba(103, 167, 57, 0.08), transparent 45%),
    var(--dl-bg-footer);
}
.auth-panel-card {
  border: 1px solid rgba(103, 167, 57, 0.35);
  border-radius: 16px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(103, 167, 57, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.auth-panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.auth-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dl-green);
  background: rgba(103, 167, 57, 0.12);
  border: 1px solid rgba(103, 167, 57, 0.25);
}
.auth-panel-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-panel-sub {
  margin: 0;
  color: var(--dl-text-muted);
  font-size: 13px;
}

.auth-form--portal { gap: 14px; }
.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-field {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-field input,
.auth-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--dl-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field--icon input { padding-left: 44px; }
.auth-field:has(.auth-field-icon) input { padding-left: 44px; }
.auth-field:has(.auth-pass-toggle) input { padding-right: 44px; }
.auth-field-icon {
  position: absolute;
  left: 14px;
  color: var(--dl-text-dim);
  pointer-events: none;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--dl-green);
  box-shadow: 0 0 0 3px rgba(103, 167, 57, 0.15);
}
.auth-field input::placeholder { color: var(--dl-text-dim); }
.auth-pass-toggle {
  position: absolute;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dl-text-muted);
  cursor: pointer;
}
.auth-pass-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-auth-portal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--dl-green) 0%, #4d8f28 55%, var(--dl-orange) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.btn-auth-portal:hover { filter: brightness(1.06); transform: translateY(-1px); }

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  color: var(--dl-text-muted);
  font-size: 13px;
}
.auth-switch a {
  color: var(--dl-orange);
  font-weight: 700;
  margin-left: 6px;
}
.auth-switch a:hover { color: var(--dl-orange-hover); }

.auth-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-type-tab {
  height: 40px;
  border: 1px solid var(--dl-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--dl-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.auth-type-tab.is-active {
  border-color: var(--dl-green);
  color: #fff;
  background: rgba(103, 167, 57, 0.15);
}

.auth-pass-rules {
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--dl-text-dim);
}
.auth-pass-rules li { margin-bottom: 4px; }
.auth-pass-rules li.is-ok { color: #b6e89a; }

.auth-terms { margin-top: 4px; font-size: 13px; }
.auth-terms a { color: var(--dl-green); }

.auth-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.auth-assurance {
  padding: 14px 12px;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}
.auth-assurance-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1;
}
.auth-assurance strong {
  display: block;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.auth-assurance p {
  margin: 0;
  color: var(--dl-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.is-account-portal .auth-portal,
body.is-account-portal #auth-guest-shell { display: none; }
body.is-account-portal .account-sidebar { display: block !important; }
body.is-account-portal .account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

@media (max-width: 980px) {
  .auth-portal { grid-template-columns: 1fr; }
  .auth-hero { min-height: 220px; }
  .auth-assurances { grid-template-columns: 1fr; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .auth-panel { padding: 20px 16px; }
}

/* Legacy account grid (cart etc.) */
.account-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-top: 24px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.cart-table th,
.cart-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--dl-border);
}

.cart-totals {
  margin: 16px 0 24px;
  font-size: 18px;
}

.cart-empty {
  color: var(--dl-text-muted);
  margin-bottom: 16px;
}

.content-page .prose {
  margin-top: 24px;
  max-width: 720px;
  color: var(--dl-text-muted);
  line-height: 1.7;
}

.content-page .prose h2 {
  margin: 24px 0 12px;
  color: #fff;
  font-size: 1.25rem;
}

.content-page .prose a {
  color: var(--dl-green);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.product-detail-image img {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--dl-bg-tile);
}

.product-detail-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--dl-green);
  margin-bottom: 16px;
}

.btn-add-cart {
  margin-top: 20px;
}

.catalog-page .page-hero h1 {
  font-size: 1.75rem;
  margin: 0 0 20px;
  color: #fff;
}

.catalog-empty {
  color: var(--dl-text-muted);
  padding: 24px 0;
}

.product-sku,
.product-short {
  color: var(--dl-text-muted);
  margin: 0 0 12px;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--dl-border);
  background: #111;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}

.product-thumb.is-active {
  border-color: var(--dl-green);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.related-products {
  margin-top: 48px;
}

.related-products h2 {
  margin-bottom: 16px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.cart-totals-box {
  background: var(--dl-bg-tile);
  border-radius: 12px;
  padding: 20px;
}

.cart-totals-box p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.cart-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #111;
  border-radius: 6px;
}

.contact-form,
.page-list {
  margin-top: 16px;
}

.page-list {
  padding-left: 18px;
}

.page-list a {
  color: var(--dl-green);
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .header-currency {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
  }

  .main-content {
    padding-top: 60px;
  }

  .main-inner {
    min-height: calc(100vh - 60px);
  }
}

@media (max-width: 900px) {
  .auth-cards {
    grid-template-columns: 1fr;
  }
}

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

  .account-sidebar-card {
    padding: 16px 12px;
  }

  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-support-bar {
    flex-wrap: wrap;
  }

  .auth-support-link {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  .btn-support-sm span {
    display: inline;
  }
}

.checkout-form {
  max-width: 520px;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.qty-input {
  width: 72px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px 8px;
}
.ghost-btn {
  background: transparent;
  color: #f7971d;
  border: 0;
  cursor: pointer;
}
.auth-feedback {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.auth-feedback.ok { background: #1d3314; color: #b6e89a; }
.auth-feedback.err { background: #3a1414; color: #ffb4ae; }

/* Logged-in customer portal */
body.is-account-portal .auth-support-bar { display: none; }
.account-page.is-logged-in .account-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}
.portal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--dl-border);
}
.portal-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(103, 167, 57, 0.18);
  color: var(--dl-green);
  font-weight: 700;
  flex-shrink: 0;
}
.portal-user strong { display: block; color: #fff; font-size: 14px; }
.portal-user span { display: block; color: var(--dl-text-muted); font-size: 12px; word-break: break-all; }
.portal-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  margin-bottom: 16px;
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(103, 167, 57, 0.16), transparent 48%),
    var(--dl-bg-tile);
}
.portal-kicker {
  margin: 0 0 8px;
  color: var(--dl-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portal-hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.portal-hero p {
  margin: 0;
  max-width: 520px;
  color: var(--dl-text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.portal-stat {
  padding: 18px 16px;
  background: var(--dl-bg-tile);
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 6px;
  min-height: 110px;
}
.portal-stat span { color: var(--dl-text-muted); font-size: 12px; }
.portal-stat b { color: #fff; font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.portal-stat small {
  color: var(--dl-text-dim);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}
.portal-grid--appt { grid-template-columns: 1fr 1fr; }
.portal-panel {
  background: var(--dl-bg-tile);
  border: 1px solid var(--dl-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.portal-panel--solo { width: 100%; }
.portal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dl-border);
}
.portal-panel-head h3 { margin: 0; color: #fff; font-size: 15px; }
.portal-panel-head a { color: var(--dl-green); font-size: 13px; font-weight: 600; }
.portal-stack { display: grid; gap: 10px; }
.portal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.portal-row strong { display: block; color: #fff; font-size: 14px; }
.portal-row small { display: block; margin-top: 4px; color: var(--dl-text-muted); font-size: 12px; line-height: 1.4; }
.portal-row-meta { display: grid; justify-items: end; gap: 6px; }
.portal-row-meta b { color: #fff; }
.portal-row--link { text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s; }
.portal-row--link:hover { border-color: rgba(103, 167, 57, 0.45); background: rgba(103, 167, 57, 0.06); }
.portal-link-cta { color: var(--dl-green); font-size: 13px; font-weight: 700; white-space: nowrap; }
.portal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
  background: #222;
  color: #ddd;
}
.portal-badge.ok { background: #1d3314; color: #b6e89a; }
.portal-badge.warn { background: #3a2a0c; color: #ffd089; }
.portal-badge.bad { background: #3a1414; color: #ffb4ae; }
.portal-actions { display: grid; gap: 10px; }
.portal-action {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, background 0.2s;
}
.portal-action:hover { border-color: rgba(103, 167, 57, 0.45); background: rgba(103, 167, 57, 0.06); }
.portal-action strong { color: #fff; font-size: 14px; }
.portal-action span { color: var(--dl-text-muted); font-size: 12px; line-height: 1.4; }
.portal-empty {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--dl-border);
  border-radius: 12px;
  color: var(--dl-text-muted);
}
.portal-empty strong { display: block; margin-bottom: 6px; color: #fff; }
.portal-empty p { margin: 0; font-size: 13px; }
.order-card {
  border: 1px solid var(--dl-border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.order-card h4 { margin: 0; color: #fff; font-size: 15px; }
.order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dl-text-muted);
  font-size: 13px;
}
.order-items b { color: #fff; font-weight: 600; }
.order-card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dl-border);
  color: var(--dl-text-muted);
}
.order-card-foot strong { color: #fff; font-size: 16px; }
.portal-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.portal-form textarea,
.portal-form select,
.portal-form input:not([type="checkbox"]) {
  width: 100%;
  box-sizing: border-box;
}
.portal-form-actions { margin-top: 8px; }
.account-page.is-logged-in .account-content { min-width: 0; }

/* ECU file upload wizard */
.ecu-wizard { display: grid; gap: 18px; }
.ecu-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecu-steps li {
  display: grid;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}
.ecu-steps li span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--dl-border);
  color: var(--dl-text-muted);
  font-weight: 700;
  font-size: 12px;
}
.ecu-steps li small {
  color: var(--dl-text-muted);
  font-size: 11px;
  line-height: 1.3;
}
.ecu-steps li.is-active {
  border-color: rgba(103, 167, 57, 0.55);
  background: rgba(103, 167, 57, 0.08);
}
.ecu-steps li.is-active span {
  background: var(--dl-green);
  border-color: var(--dl-green);
  color: #111;
}
.ecu-steps li.is-done span {
  border-color: rgba(103, 167, 57, 0.45);
  color: var(--dl-green);
}
.ecu-pane h3 { margin: 0 0 6px; color: #fff; font-size: 18px; }
.ecu-pane-lead { margin: 0 0 16px; color: var(--dl-text-muted); font-size: 13px; }
.ecu-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.ecu-more {
  margin: 0 0 14px;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.15);
}
.ecu-more summary {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.ecu-file-zone { margin-top: 8px; }
.ecu-file-label { margin: 0 0 8px; color: var(--dl-text-muted); font-size: 13px; }
.ecu-drop {
  border: 1px dashed var(--dl-border);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  min-height: 88px;
}
.ecu-drop.is-drag,
.ecu-drop:hover { border-color: rgba(103, 167, 57, 0.5); background: rgba(103, 167, 57, 0.06); }
.ecu-drop.has-file { border-style: solid; border-color: rgba(103, 167, 57, 0.35); }
.ecu-drop.is-uploading::after {
  content: "…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
}
.ecu-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ecu-drop-inner strong { display: block; color: #fff; font-size: 14px; }
.ecu-drop-inner small { display: block; margin-top: 6px; color: var(--dl-text-muted); font-size: 12px; }
.ecu-options { display: grid; gap: 10px; }
.ecu-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.ecu-option input { margin-top: 3px; }
.ecu-option span { display: grid; gap: 4px; }
.ecu-option strong { color: #fff; font-size: 14px; }
.ecu-option small { color: var(--dl-green); font-weight: 700; }
.ecu-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--dl-border);
  color: var(--dl-text-muted);
}
.ecu-total-line strong { color: #fff; font-size: 18px; }
.ecu-subhead { margin: 18px 0 10px; color: #fff; font-size: 14px; }
.ecu-support-files { display: grid; gap: 12px; }
.ecu-review h4 { margin: 14px 0 6px; color: #fff; font-size: 13px; }
.ecu-review p,
.ecu-review ul { color: var(--dl-text-muted); font-size: 13px; }
.ecu-review ul { margin: 0; padding-left: 18px; }
.ecu-pay-note { font-size: 12px; color: var(--dl-text-dim); }
.ecu-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.portal-panel--wizard { padding-bottom: 24px; }
.ecu-file-card .ecu-download-btn { margin-top: 12px; display: inline-flex; }
.ecu-status-note { margin: 12px 0 0; font-size: 12px; color: var(--dl-text-muted); }

@media (max-width: 980px) {
  .portal-stats { grid-template-columns: 1fr 1fr; }
  .portal-grid,
  .portal-grid--appt,
  .portal-form .form-grid { grid-template-columns: 1fr; }
  .ecu-form-grid,
  .ecu-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .portal-hero { flex-direction: column; padding: 20px; }
  .portal-stats { grid-template-columns: 1fr; }
}

.lang-switch, .mobile-lang-row { display: flex; gap: 6px; align-items: center; }
.lang-btn {
  background: transparent;
  border: 1px solid #333;
  color: #b2b2b2;
  min-width: 36px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.lang-btn.is-active { border-color: #6fb43a; color: #6fb43a; }
.vehicle-finder {
  grid-column: 1 / -1;
  background: #141414;
  border: 1px solid #262626;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.vehicle-finder-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}
.vehicle-finder label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #ccc; }
.vehicle-finder select, .waitlist-form input, .review-form textarea, .review-form select {
  background: #0f0f0f;
  border: 1px solid #333;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
}
.stock-pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.stock-pill.low { background: #3a2a10; color: #f7c77d; }
.stock-pill.out { background: #3a1414; color: #ffb4ae; }
.compat-list { color: #bbb; font-size: 14px; }
.review-block { margin-top: 32px; }
.review-item { border-top: 1px solid #222; padding: 12px 0; }
.verified { color: #6fb43a; font-size: 12px; }
.review-form, .waitlist-form { display: grid; gap: 8px; max-width: 480px; margin-top: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-item { padding: 0; border: 0; background: #111; cursor: pointer; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.gallery-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1200;
  display: grid; place-items: center;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox img { max-width: 90vw; max-height: 85vh; }
.gallery-lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; }
.dg-chat-widget { position: fixed; right: 24px; bottom: 160px; z-index: 1001; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dg-chat-toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #1f1f1f; color: #6fb43a; box-shadow: 0 4px 16px rgba(0,0,0,.4); cursor: pointer; }
.dg-chat-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.dg-chat-panel { width: min(340px, calc(100vw - 32px)); background: #161616; border: 1px solid #2a2a2a; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.dg-chat-panel.is-hidden { display: none; }
.dg-chat-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #111; border-bottom: 1px solid #2a2a2a; }
.dg-chat-header strong { font-size: 14px; }
.dg-chat-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.dg-chat-body { display: flex; flex-direction: column; }
.dg-chat-messages { height: 240px; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dg-chat-msg { max-width: 85%; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.dg-chat-msg p { margin: 0; }
.dg-chat-msg--user { align-self: flex-end; background: #1d3314; }
.dg-chat-msg--agent { align-self: flex-start; background: #222; }
.dg-chat-compose { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #2a2a2a; }
.dg-chat-compose input { flex: 1; min-width: 0; background: #0f0f0f; border: 1px solid #333; color: #fff; padding: 10px 12px; border-radius: 10px; }
.dg-chat-compose button { flex: 0 0 auto; background: #fff; color: #111; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.dg-chat-wa { display: block; text-align: center; padding: 10px 12px 12px; color: #6fb43a; font-size: 12px; text-decoration: none; border-top: 1px solid #2a2a2a; }
.dg-chat-gate { padding: 22px 16px 8px; text-align: center; }
.dg-chat-gate p { margin: 0 0 16px; color: #cfcfcf; font-size: 14px; line-height: 1.45; }
.dg-chat-gate-actions { display: grid; gap: 8px; margin-bottom: 8px; }
.dg-chat-gate-btn { display: block; padding: 11px 14px; border-radius: 10px; border: 1px solid #333; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.dg-chat-gate-btn--primary { background: #6fb43a; border-color: #6fb43a; color: #081203; }
.dg-chat-gate .dg-chat-wa { border-top: 0; padding-top: 4px; }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.invoice-card { border-top: 1px solid #222; padding: 10px 0; }
.product-rating { color: #f7c77d; font-size: 13px; margin: 4px 0; }

.vehicle-search-wrap { position: relative; }
.vehicle-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1200;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  max-height: 280px;
  overflow: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.vehicle-search-item {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #ddd;
  cursor: pointer;
}
.vehicle-search-item:hover { background: #1f1f1f; }
.vehicle-search-type { font-size: 11px; color: #8a8a8a; text-transform: uppercase; }
.portal-timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.portal-timeline li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}
.portal-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6fb43a;
  margin-top: 4px;
}
.portal-timeline small { color: var(--dl-text-muted); display: block; margin-top: 2px; }
.tuning-search { margin: 16px 0; max-width: 520px; }
.ecu-pay-btn { margin-top: 12px; }

.trust-badges { margin: 0 0 24px; }
.trust-badges__title { font-size: 18px; margin: 0 0 14px; color: #fff; }
.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.trust-badge {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.trust-badge__icon { font-size: 18px; }
.trust-badge strong { font-size: 13px; color: #fff; }

.compare-title { margin: 0 0 12px; color: #fff; font-size: 18px; }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th,
.compare-table td {
  border: 1px solid #2a2a2a;
  padding: 10px 8px;
  text-align: center;
}
.compare-table th { background: #1a1a1a; color: #fff; }
.compare-table tr th:first-child,
.compare-table tr td:first-child { text-align: left; }
.compare-price-row td,
.compare-price-row th { background: #111; }

.ecu-vin-btn { margin-top: 8px; width: 100%; }

@media (max-width: 768px) {
  .ecu-wizard-grid,
  .ecu-form-grid,
  .form-grid,
  .portal-grid {
    grid-template-columns: 1fr !important;
  }
  .portal-page.is-logged-in .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  .compare-table { font-size: 12px; }
  .header-search input[type="search"] { min-width: 0; }
}
