/* ==========================================================================
   Dental store theme
   Design tokens lifted from the reference storefront's computed styles
   (shadcn/Tailwind HSL vars converted to hex).
   ========================================================================== */

:root {
  /* core palette */
  --dk-primary:      #1D2A35;   /* --primary   206 30% 16%  : headings, footer */
  --dk-secondary:    #205274;   /* --secondary 204 57% 29%  : links, buttons   */
  --dk-accent:       #EC5104;   /* --accent     20 97% 47%  : CTA / sale       */
  --dk-accent-soft:  #F97316;

  /* supporting */
  --dk-green:        #16A34A;   /* discount %, in stock  */
  --dk-gold:         #B77E21;   /* reward points         */
  --dk-muted:        #556575;   /* secondary text        */
  --dk-grey:         #A9AEB3;   /* strike price, meta    */
  --dk-border:       #DDE0E4;   /* --border 210 10% 88%  */
  --dk-chip:         #D7E7FA;   /* offer chip background */
  --dk-tint:         #E1F2FC;   /* trust bar             */
  --dk-tint-2:       #EFF9FF;
  --dk-surface:      #F8FAFF;
  --dk-white:        #FFFFFF;

  --dk-radius:       12px;
  --dk-radius-sm:    7px;
  --dk-radius-pill:  9999px;
  --dk-container:    1200px;
  --dk-shadow:       0 1px 2px rgba(29,42,53,.05), 0 6px 20px rgba(29,42,53,.09);
}

/* ------------------------------------------------------------- layout */
/* Stock OpenCart pins the footer with position:absolute;bottom:-1px and reserves
   730px of padding-bottom inside #content to dodge it. Any footer taller or page
   shorter than that guess and the footer overlaps real content (e.g. form submit
   buttons). Replace the whole hack with a normal-flow flex column: content grows,
   footer always comes after it, and still hugs the bottom on short pages. */
#container {
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#container > main { flex: 1 0 auto; }
footer {
  position: static !important;
  bottom: auto !important;
  border: 0 !important;
}
#content, #column-left, #column-right { padding-bottom: 24px !important; }

/* ---------------------------------------------------------------- base */

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--dk-primary);
  background: var(--dk-white);
  font-size: 14px;
  line-height: 1.5;
}

::selection { background: rgba(236, 81, 4, .22); }

a { color: var(--dk-secondary); text-decoration: none; }
a:hover { color: var(--dk-accent); }

h1, h2, h3, h4, h5 { font-weight: 600; color: var(--dk-primary); }

.container { max-width: var(--dk-container); }

/* OpenCart's default top nav and header block are replaced by .dk-* markup */
nav#top { display: none; }

/* ================================================================== HERO */

.dk-hero {
  max-width: var(--dk-container);
  margin: 14px auto 4px;
  padding: 0 12px;
}
.dk-hero__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 16px;
  padding: 38px 44px;
  background:
    radial-gradient(600px 300px at 85% -40%, rgba(236, 81, 4, .28), transparent 60%),
    radial-gradient(700px 380px at -10% 130%, rgba(46, 108, 148, .55), transparent 65%),
    linear-gradient(120deg, #1D2A35 10%, #205274 90%);
  color: #fff;
}
/* subtle dot-grid texture over the right half of the hero */
.dk-hero__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 45%, #000 85%);
  pointer-events: none;
}
.dk-hero__copy, .dk-hero__stats { position: relative; z-index: 1; }

/* gradient word inside the headline */
.dk-grad {
  background: linear-gradient(90deg, var(--dk-accent-soft), #FFB27A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dk-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dk-accent-soft);
  margin-bottom: 8px;
}
.dk-hero__copy h1 {
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.4px;
  margin: 0 0 8px;
}
.dk-hero__copy p {
  color: #C9D6E2;
  font-size: 14px;
  max-width: 520px;
  margin: 0 0 20px;
}
.dk-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dk-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dk-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--dk-radius-pill);
  transition: transform .15s ease, background .15s ease;
}
.dk-btn-accent:hover { background: #d24803; color: #fff; transform: translateY(-1px); }
.dk-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--dk-radius-pill);
  transition: border-color .15s ease, background .15s ease;
}
.dk-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
/* glassmorphism stat chips on the right of the hero */
.dk-hero__stats {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: 8px;
}
.dk-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 190px;
}
/* offset via position, not transform - the float animation owns transform */
.dk-stat:nth-child(2) { position: relative; right: 22px; }
.dk-stat i {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--dk-radius-pill);
  background: rgba(249, 115, 22, .25);
  color: #FFB27A;
  font-size: 14px;
  flex: 0 0 auto;
}
.dk-stat strong { display: block; color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.dk-stat span { display: block; color: #B9C8D6; font-size: 11.5px; }

@media (max-width: 767px) {
  .dk-hero__inner { padding: 26px 22px; }
  .dk-hero__stats { display: none; }
}

/* ================================================================ HEADER */

.dk-navbar {
  position: sticky;
  top: 0;
  z-index: 9998;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  width: 100%;
  border-bottom: 1px solid var(--dk-border);
}

.dk-navbar__main {
  max-width: var(--dk-container);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 12px;
}

/* -- pincode ------------------------------------------------------------ */

.dk-pincode {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  min-width: 118px;
}
.dk-pincode__label { font-size: 11px; color: var(--dk-muted); }
.dk-pincode__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--dk-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dk-pincode__value i { font-size: 10px; color: var(--dk-secondary); }

/* -- logo --------------------------------------------------------------- */

.dk-logo { display: flex; align-items: center; flex: 0 0 auto; }
.dk-logo img { max-height: 42px; width: auto; }
.dk-logo__text {
  font-size: 22px;
  font-weight: 700;
  color: var(--dk-primary);
  letter-spacing: -.3px;
  margin: 0;
}
.dk-logo__text span { color: var(--dk-accent); }

/* -- search ------------------------------------------------------------- */

.dk-search { flex: 1 1 auto; max-width: 620px; }
.dk-search__box {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1.5px solid var(--dk-border);
  border-radius: var(--dk-radius-pill);
  background: var(--dk-white);
  padding: 0 6px 0 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dk-search__box:focus-within { box-shadow: 0 0 0 4px rgba(32, 82, 116, .10); }
.dk-search__box:focus-within { border-color: var(--dk-secondary); }
.dk-search__box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--dk-primary);
  background: transparent;
}
.dk-search__box input::placeholder { color: var(--dk-grey); }
.dk-search__icon {
  border: 0;
  background: transparent;
  color: var(--dk-secondary);
  padding: 6px 8px;
  border-radius: var(--dk-radius-sm);
  font-size: 15px;
  cursor: pointer;
}
.dk-search__icon:hover { background: var(--dk-tint-2); }
.dk-search__submit {
  border: 0;
  background: var(--dk-secondary);
  color: #fff;
  height: 32px;
  padding: 0 18px;
  border-radius: var(--dk-radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.dk-search__submit:hover { background: var(--dk-primary); }

/* -- account / cart ----------------------------------------------------- */

.dk-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.dk-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--dk-border);
  border-radius: var(--dk-radius);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dk-primary);
  background: var(--dk-white);
  cursor: pointer;
  white-space: nowrap;
}
.dk-btn-outline:hover { border-color: var(--dk-secondary); color: var(--dk-secondary); }

.dk-cart-btn { position: relative; }
.dk-cart-btn .dk-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--dk-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: var(--dk-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* -- nav strip ---------------------------------------------------------- */

.dk-navstrip { border-top: 1px solid var(--dk-border); background: var(--dk-white); }
.dk-navstrip__inner {
  max-width: var(--dk-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 40px;
  padding: 0 12px;
}
/* Scrollable strip ONLY on small screens. overflow-x:auto on the desktop strip
   clips the absolutely-positioned mega panel into an invisible white sliver. */
@media (max-width: 991px) {
  .dk-navstrip__inner { overflow-x: auto; scrollbar-width: none; }
  .dk-navstrip__inner::-webkit-scrollbar { display: none; }
}
.dk-navstrip a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dk-primary);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.dk-navstrip a:hover { color: var(--dk-secondary); border-bottom-color: var(--dk-secondary); }

/* -- mega menu ---------------------------------------------------------- */

.dk-mega { position: relative; }
.dk-mega > a { display: inline-flex; align-items: center; gap: 6px; }
.dk-mega__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dk-white);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius);
  box-shadow: var(--dk-shadow);
  padding: 20px 24px;
  width: min(940px, 92vw);
  z-index: 9999;
  columns: 4;
  column-gap: 26px;
  /* 17 speciality groups outgrow short screens - scroll inside the panel */
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.dk-mega:hover .dk-mega__panel,
.dk-mega.is-open .dk-mega__panel { display: block; }

/* On small screens the strip scrolls (and would clip the panel), so break the
   panel out of it: fixed under the sticky navbar, full width. */
@media (max-width: 991px) {
  .dk-mega { position: static; }
  .dk-mega__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    top: 120px;             /* below the sticky navbar rows */
    max-height: 70vh;
    overflow-y: auto;
    columns: 2;
  }
}
.dk-mega__group { break-inside: avoid; margin-bottom: 16px; }
.dk-mega__group > a {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dk-secondary);
  border: 0;
  margin-bottom: 4px;
}
.dk-mega__group ul { list-style: none; padding: 0; margin: 0; }
.dk-mega__group ul a {
  font-size: 12px;
  font-weight: 400;
  color: var(--dk-muted);
  border: 0;
  padding: 2px 0;
  display: block;
}
.dk-mega__group ul a:hover { color: var(--dk-accent); }

/* -- trust bar ---------------------------------------------------------- */

.dk-trust {
  max-width: var(--dk-container);
  margin: 12px auto;
  background: linear-gradient(90deg, var(--dk-tint), var(--dk-tint-2) 55%, var(--dk-tint));
  border-radius: var(--dk-radius);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 100px);
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dk-trust::-webkit-scrollbar { display: none; }
.dk-trust span {
  font-size: 13px;
  font-weight: 500;
  color: var(--dk-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dk-trust i {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dk-white);
  border-radius: var(--dk-radius-pill);
  color: var(--dk-secondary);
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(29,42,53,.10);
}

/* ============================================================== MOTION */

html { scroll-behavior: smooth; }

/* scroll-reveal (class added by JS; no-JS and reduced-motion users see everything) */
.dk-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.dk-reveal.is-in { opacity: 1; transform: none; }

/* brand marquee */
.dk-marquee {
  max-width: var(--dk-container);
  margin: 0 auto;
  padding: 0 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dk-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: dk-marquee 45s linear infinite;
}
.dk-marquee:hover .dk-marquee__track { animation-play-state: paused; }
.dk-marquee .dk-tile--brand { width: 170px; flex: 0 0 auto; }
@keyframes dk-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }  /* half the doubled track + half the gap */
}

/* floating hero chips */
@keyframes dk-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}
.dk-stat { animation: dk-float 4s ease-in-out infinite alternate; }
.dk-stat:nth-child(2) { animation-delay: 1.2s; }
.dk-stat:nth-child(3) { animation-delay: 2.4s; }

/* hero CTA arrow nudge */
.dk-btn-accent i { transition: transform .2s ease; }
.dk-btn-accent:hover i { transform: translateX(4px); }

/* deals countdown chip */
.dk-countdown {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dk-accent);
  background: #FFF1E8;
  border: 1px solid #FFD9C2;
  border-radius: var(--dk-radius-pill);
  padding: 6px 14px;
}
.dk-countdown strong { font-variant-numeric: tabular-nums; }

/* navbar gains depth once the page scrolls */
.dk-navbar.is-scrolled { box-shadow: 0 4px 20px rgba(29, 42, 53, .10); }

/* back-to-top pill */
.dk-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9997;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--dk-radius-pill);
  background: var(--dk-secondary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(29, 42, 53, .25);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
}
.dk-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.dk-top:hover { background: var(--dk-accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dk-marquee__track, .dk-stat { animation: none; }
  .dk-reveal { opacity: 1; transform: none; transition: none; }
  .product-thumb .image::after { display: none; }
}

/* ============================================================ RAIL / GRID */

.dk-rail-head {
  max-width: var(--dk-container);
  margin: 18px auto 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* used when the rail already sits inside a .container (e.g. the featured module) */
.dk-rail-head--flush { max-width: none; margin: 26px 0 12px; padding: 0; }
.dk-rail-head h2 { font-size: 18px; font-weight: 600; margin: 0; position: relative; padding-bottom: 7px; }
.dk-rail-head h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--dk-accent), var(--dk-accent-soft));
}
.dk-rail-head a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dk-secondary);
  border: 1.5px solid var(--dk-border);
  border-radius: var(--dk-radius-pill);
  padding: 6px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.dk-rail-head a:hover { border-color: var(--dk-secondary); background: var(--dk-tint-2); color: var(--dk-secondary); }

/* brand + category tiles */
.dk-tiles {
  max-width: var(--dk-container);
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  grid-auto-rows: 1fr;   /* every row the same height, so wrapped names don't skew a row */
}
@media (min-width: 768px) { .dk-tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 992px) { .dk-tiles { grid-template-columns: repeat(6, 1fr); gap: 20px; } }

.dk-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--dk-white);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius);
  padding: 10px 6px;
  text-align: center;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.dk-tile { transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.dk-tile:hover { border-color: var(--dk-secondary); box-shadow: var(--dk-shadow); transform: translateY(-2px); }
.dk-tile__img { transition: transform .2s ease, box-shadow .2s ease; }
.dk-tile:hover .dk-tile__img { transform: scale(1.08); box-shadow: 0 0 0 4px var(--dk-tint-2); }
.dk-tile__img {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dk-tint-2);
  border-radius: var(--dk-radius-pill);
  color: var(--dk-secondary);
  font-size: 24px;
  overflow: hidden;
  flex: 0 0 auto;
}
/* category artwork is a monogram disc - fill the circle, don't letterbox it */
.dk-tile__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Brand tiles show a wide wordmark. Circle-cropping these made them unreadable. */
.dk-tile--brand { padding: 10px; min-height: 72px; }
.dk-tile__logo {
  width: 100%;
  height: 48px;
  object-fit: contain;
}
.dk-tile__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--dk-primary);
}

/* ========================================================== PRODUCT CARD */

/* reference grid: 2 / md:4 / lg:5 with 8px -> 20px gap.
   Keep every rule at .dk-grid specificity - adding #product-list here would
   outrank the media queries below and lock the grid at 2 columns. */
.dk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* Listing pages carry a ~324px filter sidebar, so we step up one breakpoint
   later than the reference in order to land on the same ~200px card width. */
@media (min-width: 768px)  { .dk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .dk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1500px) { .dk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Full-width listings (no sidebar) can use the reference's own column counts. */
.dk-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .dk-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px)  { .dk-grid--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .dk-grid--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* list view (the toggle on search/special pages) */
.dk-grid--list { grid-template-columns: 1fr !important; }

/* neutralise the bootstrap column classes OpenCart's markup and JS apply */
.dk-grid > .product-layout,
.dk-grid > .col,
.dk-grid > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Undo stock OpenCart card rules that fight this layout:
   stylesheet.css pins .button to position:absolute;bottom:0 (it covers the price)
   and gives .description padding:15px;margin-bottom:45px. */
.product-thumb .button {
  position: static !important;
  width: auto !important;
}
.product-thumb .description {
  padding: 0 !important;
  margin-bottom: 0 !important;
}
.product-thumb .button button { width: auto; line-height: 1.4; }

.product-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dk-white);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.product-thumb:hover {
  border-color: #c5d4e2;
  box-shadow: 0 2px 4px rgba(29,42,53,.06), 0 12px 28px rgba(29,42,53,.12);
  transform: translateY(-3px);
}
.product-thumb { transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.product-thumb .image img { transition: transform .25s ease; }
.product-thumb:hover .image img { transform: scale(1.05); }

.product-thumb .image {
  position: relative;
  padding: 10px;
  background: var(--dk-surface);
  border-radius: var(--dk-radius) var(--dk-radius) 0 0;
  overflow: hidden;
}
.product-thumb .image img { border-radius: 8px; }

/* light sweep across the image on hover */
.product-thumb .image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.38) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
}
.product-thumb:hover .image::after {
  transform: translateX(130%);
  transition: transform .65s ease;
}
.product-thumb .image a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.product-thumb .image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* badges over the image */
.dk-badges {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.dk-chip-offers {
  background: linear-gradient(135deg, var(--dk-accent-soft), var(--dk-accent));
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--dk-radius-pill);
  letter-spacing: .4px;
  box-shadow: 0 2px 6px rgba(236, 81, 4, .35);
}
.dk-chip-rating {
  background: var(--dk-green);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--dk-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dk-wish {
  pointer-events: auto;
  border: 0;
  background: rgba(255,255,255,.9);
  color: var(--dk-grey);
  width: 26px; height: 26px;
  border-radius: var(--dk-radius-pill);
  font-size: 12px;
  cursor: pointer;
}
.dk-wish:hover { color: var(--dk-accent); }

.product-thumb .content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 10px 10px;
  gap: 4px;
}

.product-thumb .rating-line {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--dk-grey);
}
.product-thumb .rating-line .stars { color: #F5A623; font-size: 10px; }

/* Two-line clamp. -webkit-box is not honoured by every engine, so the
   max-height does the real guaranteeing and keeps every card the same height. */
.dk-clamp-2,
.product-thumb h4 a,
.product-thumb .description,
.dk-tile__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;   /* 1.4 x 2 lines */
}

.product-thumb h4 { margin: 0; }
.product-thumb h4 a {
  font-size: 12px;
  font-weight: 500;
  color: var(--dk-primary);
  min-height: 2.8em;   /* keeps prices aligned across a row */
}
.product-thumb .description {
  font-size: 12px;
  font-weight: 400;
  color: var(--dk-muted);
  margin: 0;
}

.product-thumb .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.product-thumb .price-new { font-size: 16px; font-weight: 600; color: var(--dk-primary); }
.product-thumb .price-old {
  font-size: 12px; font-weight: 500; color: var(--dk-grey);
  text-decoration: line-through;
}
/* always its own line, otherwise it wraps on some cards and not others */
.product-thumb .price-save {
  font-size: 12px; font-weight: 500; color: var(--dk-green);
  flex-basis: 100%;
}
.product-thumb .price-tax { display: none; }

.product-thumb .dk-points { font-size: 12px; font-weight: 500; color: var(--dk-gold); }

.product-thumb .button { display: flex; gap: 6px; margin-top: 8px; }
.product-thumb .button button {
  flex: 1;
  border: 1.5px solid var(--dk-secondary);
  background: var(--dk-white);
  color: var(--dk-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 7px 10px;
  border-radius: var(--dk-radius-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.product-thumb .button button:hover { background: var(--dk-secondary); color: #fff; }
.product-thumb .button .btn-icon {
  flex: 0 0 34px;
  border-color: var(--dk-border);
  color: var(--dk-muted);
}
.product-thumb .button .btn-icon:hover { background: var(--dk-tint-2); color: var(--dk-secondary); border-color: var(--dk-secondary); }

/* ============================================================== SIDEBAR */

#column-left, #column-right { padding-top: 4px; }
@media (min-width: 992px) { #column-left { flex: 0 0 264px; max-width: 264px; } }

.dk-side-card {
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius);
  background: var(--dk-white);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.dk-side-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dk-primary);
  text-transform: uppercase;
  letter-spacing: .4px;
  padding-bottom: 10px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--dk-border);
}
.dk-side-list { display: flex; flex-direction: column; }
.dk-side-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--dk-primary);
  padding: 6px 0;
  border-radius: var(--dk-radius-sm);
}
.dk-side-item:hover { color: var(--dk-accent); }
.dk-side-item.is-active { color: var(--dk-secondary); font-weight: 600; }
.dk-side-children {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--dk-border);
  margin: 2px 0 8px 4px;
  padding-left: 10px;
}
.dk-side-child {
  font-size: 12.5px;
  color: var(--dk-muted);
  padding: 4px 0;
}
.dk-side-child:hover { color: var(--dk-accent); }
.dk-side-child.is-active { color: var(--dk-secondary); font-weight: 600; }

/* ------------------------------------------------- category page header */

.dk-cat-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.dk-cat-head__icon {
  width: 56px; height: 56px;
  border-radius: var(--dk-radius);
  object-fit: cover;
  flex: 0 0 auto;
}
.dk-cat-head__desc { font-size: 13px; color: var(--dk-muted); margin-top: 2px; }

.dk-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dk-chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dk-secondary);
  background: var(--dk-tint-2);
  border: 1px solid var(--dk-chip);
  border-radius: var(--dk-radius-pill);
  padding: 5px 13px;
  white-space: nowrap;
}
.dk-chip:hover { background: var(--dk-chip); color: var(--dk-primary); }

.dk-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 40px;
  padding-top: 16px;
  border-top: 1px solid var(--dk-border);
}
.dk-pagination .pagination { margin: 0; }
.dk-pagination .page-link { color: var(--dk-secondary); font-size: 13px; }
.dk-pagination .page-item.active .page-link {
  background: var(--dk-secondary);
  border-color: var(--dk-secondary);
  color: #fff;
}

/* ========================================================= CATEGORY PAGE */

/* stock OpenCart draws chevron-shaped breadcrumb tabs; flatten them */
.breadcrumb {
  background: transparent !important;
  border: 0 !important;
  padding: 14px 0 6px !important;
  margin: 0 !important;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
/* stock builds each crumb as a rotated square "tab"; that selector is
   .breadcrumb > li.breadcrumb-item:after, so match its specificity to kill it */
.breadcrumb > li.breadcrumb-item {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none !important;
  position: static !important;
}
.breadcrumb > li.breadcrumb-item::after {
  content: '/';
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  transform: none !important;
  color: var(--dk-grey);
  margin-left: 6px;
}
.breadcrumb > li.breadcrumb-item:last-child::after { content: '' !important; margin: 0; }
.breadcrumb > li.breadcrumb-item + li::before { content: '' !important; display: none !important; }
.breadcrumb a { color: var(--dk-muted); }
.breadcrumb a:hover { color: var(--dk-accent); }
.breadcrumb li:last-child a { color: var(--dk-primary); font-weight: 500; }

.dk-page-title { font-size: 20px; font-weight: 600; margin: 12px 0 4px; }
.dk-result-count { font-size: 12px; color: var(--dk-muted); }

.dk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--dk-border);
  margin-bottom: 16px;
}
.dk-toolbar select {
  border: 1.5px solid var(--dk-border);
  border-radius: var(--dk-radius-sm);
  font-size: 13px;
  padding: 6px 10px;
  color: var(--dk-primary);
}

/* ========================================================== PRODUCT PAGE */

#product-info .breadcrumb { font-size: 12px; }
#product-info h1 { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }

#product-info .image .img-thumbnail {
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius);
  padding: 12px;
  background: var(--dk-white);
}
#product-info .image-additional .img-thumbnail { padding: 4px; width: 74px; }

/* brand / model / availability list */
#product-info .col-sm > ul.list-unstyled { font-size: 13px; color: var(--dk-muted); }
#product-info .col-sm > ul.list-unstyled a { font-weight: 500; }

.dk-pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
#product-info .price-new {
  font-size: 30px;
  font-weight: 700;
  color: var(--dk-primary);
}
#product-info .price-old {
  font-size: 16px;
  font-weight: 500;
  color: var(--dk-grey);
  text-decoration: line-through;
}
.dk-pdp-save {
  font-size: 13px; font-weight: 600; color: var(--dk-green);
  background: #E7F7EC; border-radius: var(--dk-radius-sm); padding: 3px 9px;
}
.dk-pdp-meta { font-size: 12.5px; color: var(--dk-muted); margin-bottom: 14px; }
#product-info h2 { margin: 0; }

/* bulk / tier pricing */
.dk-bulk {
  border: 1px solid var(--dk-border); border-radius: var(--dk-radius);
  padding: 10px 14px; margin-bottom: 14px; background: var(--dk-surface);
}
.dk-bulk__title { font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .4px; color: var(--dk-muted); margin-bottom: 6px; }
.dk-bulk__row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.dk-bulk__row strong { color: var(--dk-primary); }

/* delivery + assurance */
.dk-pdp-deliver {
  border: 1px solid var(--dk-border); border-radius: var(--dk-radius);
  padding: 12px 14px; margin: 14px 0; background: var(--dk-tint-2);
}
.dk-pdp-deliver__row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dk-primary); }
.dk-pdp-deliver__row i { color: var(--dk-secondary); }
.dk-pdp-deliver__btn {
  margin-left: auto; border: 0; background: transparent;
  color: var(--dk-secondary); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.dk-pdp-deliver__btn:hover { color: var(--dk-accent); }

.dk-pdp-trust { list-style: none; padding: 0; margin: 14px 0 0; }
.dk-pdp-trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--dk-muted); padding: 5px 0;
}
.dk-pdp-trust i { color: var(--dk-green); width: 16px; text-align: center; }

#product-info .form-label { font-size: 13px; font-weight: 500; color: var(--dk-primary); }
#product-info .form-control, #product-info .form-select {
  border: 1.5px solid var(--dk-border);
  border-radius: var(--dk-radius-sm);
  font-size: 14px;
}
#product-info .form-control:focus, #product-info .form-select:focus {
  border-color: var(--dk-secondary);
  box-shadow: none;
}

#button-cart {
  background: var(--dk-accent);
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--dk-radius);
  letter-spacing: .3px;
}
#button-cart:hover { background: #d24803; color: #fff; }

#product-info .btn-group .btn-light {
  border: 1.5px solid var(--dk-border);
  background: var(--dk-white);
  color: var(--dk-muted);
  border-radius: var(--dk-radius-sm);
}
#product-info .btn-group .btn-light:hover { border-color: var(--dk-secondary); color: var(--dk-secondary); }

#product-info .nav-tabs { border-bottom: 1px solid var(--dk-border); gap: 4px; }
#product-info .nav-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--dk-muted);
  font-size: 14px;
  font-weight: 500;
}
#product-info .nav-tabs .nav-link.active {
  color: var(--dk-primary);
  border-bottom-color: var(--dk-accent);
  background: transparent;
}
#product-info .tab-content { padding-top: 16px; font-size: 14px; color: #33414D; }
#product-info .table { font-size: 13px; }
#product-info .table td { border-color: var(--dk-border); }

/* ======================================================== FORMS (GLOBAL) */
/* Contact, login, register, account, checkout, reviews - every OpenCart form
   uses the same Bootstrap classes, so theme them once here. */

#content legend {
  font-size: 16px;
  font-weight: 600;
  color: var(--dk-primary);
  border-bottom: 1px solid var(--dk-border);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

#content .col-form-label,
#content .form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dk-primary);
}

#content .form-control,
#content .form-select {
  border: 1.5px solid var(--dk-border);
  border-radius: var(--dk-radius-sm);
  font-size: 14px;
  color: var(--dk-primary);
  padding: 9px 12px;
}
#content .form-control:focus,
#content .form-select:focus {
  border-color: var(--dk-secondary);
  box-shadow: 0 0 0 3px rgba(32, 82, 116, .12);
}
#content .form-control::placeholder { color: var(--dk-grey); }

/* rows="10" textareas render ~350px tall on a 1200px content column - rein in */
#content textarea.form-control { min-height: 140px; max-height: 240px; }

/* Forms on full-width pages stretch edge to edge; cap them at a readable width */
#content form fieldset { max-width: 880px; }
#content form fieldset + .text-end { max-width: 880px; }

/* theme ALL the bootstrap buttons OpenCart templates use */
.btn-primary {
  background: var(--dk-secondary);
  border: 1.5px solid var(--dk-secondary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--dk-radius-sm);
  padding: 9px 22px;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--dk-primary) !important;
  border-color: var(--dk-primary) !important;
  color: #fff;
}
.btn-secondary, .btn-light, .btn-info, .btn-outline-secondary {
  background: var(--dk-white);
  border: 1.5px solid var(--dk-border);
  color: var(--dk-primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--dk-radius-sm);
}
.btn-secondary:hover, .btn-light:hover, .btn-info:hover, .btn-outline-secondary:hover {
  background: var(--dk-tint-2);
  border-color: var(--dk-secondary);
  color: var(--dk-secondary);
}
.btn-danger {
  border-radius: var(--dk-radius-sm);
}

/* cards (contact address block, login/register panels, account boxes) */
#content .card {
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius);
}
#content .card-header {
  background: var(--dk-surface);
  border-bottom: 1px solid var(--dk-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--dk-primary);
  padding: 12px 16px;
}
#content .card-body { font-size: 14px; }

#content .accordion-item { border-color: var(--dk-border); }
#content .accordion-button {
  font-size: 14px;
  font-weight: 500;
  color: var(--dk-primary);
}
#content .accordion-button:not(.collapsed) {
  background: var(--dk-tint-2);
  color: var(--dk-secondary);
  box-shadow: none;
}

/* generic page titles on information/account/contact pages */
#content > h1 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
#content > h2, #content > h3 { font-size: 16px; font-weight: 600; margin: 18px 0 10px; }

/* validation */
#content .invalid-feedback { font-size: 12px; }
#content .form-control.is-invalid { border-color: #dc3545; }

/* =============================================================== FOOTER */

footer {
  position: relative;
  background: linear-gradient(180deg, #22303C 0%, var(--dk-primary) 30%);
  color: #C7D0D8;
  margin-top: 48px;
  padding: 40px 0 0;
  font-size: 13px;
}
/* thin brand-gradient edge along the footer top */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dk-secondary), var(--dk-accent), var(--dk-accent-soft));
}
footer .container { max-width: var(--dk-container); }
footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
footer a { color: #C7D0D8; }
footer a:hover { color: var(--dk-accent-soft); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 3px 0; }

.dk-footer-pay {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.dk-footer-pay span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--dk-radius-sm);
  padding: 4px 9px;
  font-size: 11px;
  color: #E4EAEF;
}
.dk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px;
  padding: 16px 0;
  font-size: 12px;
  color: #98A5B0;
}

/* ========================================================== RESPONSIVE */

@media (max-width: 991px) {
  .dk-navbar__main { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .dk-search { order: 3; flex-basis: 100%; max-width: none; }
  .dk-pincode { min-width: 0; }
  .dk-mega__panel { columns: 2; width: 92vw; }
}
@media (max-width: 575px) {
  .dk-btn-outline span { display: none; }
  /* centred + overflow:auto hides the first item off the left edge on narrow
     screens with no way to scroll back - anchor to the start instead */
  .dk-trust { gap: 18px; justify-content: flex-start; margin: 12px; }
  .dk-cat-head__icon { width: 44px; height: 44px; }
  .dk-page-title { font-size: 17px; }
}

/* Stock centres the toast with width:400px + margin-left:-200px, so on any
   viewport under 400px it hangs off the left edge. Centre with a transform instead. */
#alert {
  width: min(600px, calc(100vw - 24px)) !important;
  margin-left: 0 !important;
  left: 50% !important;
  transform: translateX(-50%);
}
