/* ==========================================================================
   Kapsule theme for OpenCart 4 – v1.0.0
   Colors are set from admin (Extensions > Themes > Kapsule) as CSS variables.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --kp-primary: #1c3d5e;
  --kp-accent: #1a9fa3;
  --kp-soft: #f2f5f8;
  --kp-ink: #17324d;
  --kp-text: #33475b;
  --kp-muted: #5f7184;
  --kp-line: #e2e8ef;
  --kp-card: #ffffff;
  --kp-radius: 10px;
  --kp-radius-sm: 6px;
  --kp-shadow: 0 1px 2px rgba(23, 50, 77, .05), 0 4px 14px rgba(23, 50, 77, .05);
  --kp-shadow-hover: 0 2px 4px rgba(23, 50, 77, .06), 0 12px 28px rgba(23, 50, 77, .10);
  --kp-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
body.kp-theme {
  font-family: var(--kp-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--kp-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.kp-theme main { overflow-x: clip; }
.kp-theme h1, .kp-theme h2, .kp-theme h3, .kp-theme h4, .kp-theme h5, .kp-theme h6 {
  font-family: var(--kp-font);
  color: var(--kp-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kp-theme h1 { font-size: clamp(26px, 3vw, 34px); }
.kp-theme h2 { font-size: clamp(22px, 2.4vw, 28px); }
.kp-theme a { color: var(--kp-primary); }
.kp-theme a:hover { color: var(--kp-accent); }
.kp-theme #content { min-height: 0; }
.kp-theme .breadcrumb { margin: 18px 0; font-size: 14px; }
.kp-theme .breadcrumb a { color: var(--kp-muted); text-decoration: none; }

/* Bootstrap color bridge */
.kp-theme .btn-primary {
  --bs-btn-bg: var(--kp-primary);
  --bs-btn-border-color: var(--kp-primary);
  --bs-btn-hover-bg: var(--kp-accent);
  --bs-btn-hover-border-color: var(--kp-accent);
  --bs-btn-active-bg: var(--kp-accent);
  --bs-btn-active-border-color: var(--kp-accent);
  --bs-btn-disabled-bg: var(--kp-primary);
  --bs-btn-disabled-border-color: var(--kp-primary);
  border-radius: var(--kp-radius-sm);
  font-weight: 600;
}
.kp-theme .form-control:focus, .kp-theme .form-select:focus {
  border-color: var(--kp-accent);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--kp-accent) 22%, transparent);
}
.kp-theme .nav-tabs .nav-link.active { color: var(--kp-primary); font-weight: 600; }
.kp-theme .pagination { --bs-pagination-active-bg: var(--kp-primary); --bs-pagination-active-border-color: var(--kp-primary); --bs-pagination-color: var(--kp-primary); }

/* ---------- Buttons ---------- */
.kp-btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .7em 1.4em;
  border-radius: var(--kp-radius-sm);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.kp-theme .kp-btn--primary { background: var(--kp-primary); color: #fff; }
.kp-theme .kp-btn--primary:hover, .kp-theme .kp-btn--primary:focus { background: color-mix(in srgb, var(--kp-primary) 85%, #000); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--kp-primary) 28%, transparent); }
.kp-btn--lg { font-size: 20px; padding: .75em 1.35em; }
.kp-btn i { font-size: .75em; transition: transform .2s; }
.kp-btn:hover i { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.kp-theme #top.kp-topbar {
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--kp-primary);
  color: #fff;
  font-size: 14px;
}
.kp-topbar__inner {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.kp-topbar__items {
  flex: 1;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
  max-width: 1220px;
  margin-inline: auto;
}
.kp-topbar__items li { display: flex; align-items: center; }
.kp-topbar__items a, .kp-topbar__items li { color: #fff; text-decoration: none; }
.kp-topbar__items i { font-size: 17px; margin-right: 12px; opacity: .95; }
.kp-topbar__switch { display: flex; gap: 6px; }
.kp-topbar__switch form { margin: 0; }
.kp-topbar .btn-link, .kp-topbar .dropdown-toggle { color: #fff !important; font-size: 13px; text-decoration: none; padding: 2px 6px; }
.kp-topbar .dropdown-menu { font-size: 14px; }
@media (max-width: 767.98px) {
  .kp-topbar__items { justify-content: center; }
  .kp-topbar__items li:not(:first-child) { display: none; }
}

/* ---------- Header ---------- */
.kp-header {
  background: #fff;
  border-bottom: 1px solid var(--kp-line);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.kp-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.kp-logo { flex: 0 0 auto; margin: 0; }
.kp-logo img { max-height: 48px; width: auto; }
.kp-logo__text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 700;
  color: var(--kp-ink) !important;
  text-decoration: none;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
/* two-tone capsule icon */
.kp-logo__pill {
  position: relative;
  width: 34px;
  height: 15px;
  border-radius: 999px;
  transform: rotate(-45deg);
  background: linear-gradient(90deg, var(--kp-accent) 0 50%, #fff 50% 100%);
  border: 3px solid var(--kp-accent);
  flex: 0 0 auto;
}
.kp-logo__pill::after {
  content: "";
  position: absolute;
  inset: -3px -3px -3px 50%;
  border-radius: 0 999px 999px 0;
  border: 3px solid var(--kp-primary);
  border-left: 0;
}

/* nav */
.kp-nav { flex: 1 1 auto; display: block; }
.kp-nav__list { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.kp-nav__link {
  display: block;
  padding: 10px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--kp-ink) !important;
  text-decoration: none;
  border-radius: var(--kp-radius-sm);
  position: relative;
}
.kp-nav__link:hover, .kp-nav__item.show > .kp-nav__link { color: var(--kp-accent) !important; }
.kp-nav__link.dropdown-toggle::after { border: 0; content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; vertical-align: 2px; margin-left: 6px; }
.kp-nav__drop { border: 1px solid var(--kp-line); border-radius: var(--kp-radius); box-shadow: var(--kp-shadow-hover); padding: 10px; min-width: 240px; }
.kp-nav__cols { display: flex; gap: 8px; }
.kp-nav__cols ul { margin: 0; min-width: 200px; }
.kp-nav__drop .dropdown-item { border-radius: var(--kp-radius-sm); padding: 8px 12px; color: var(--kp-text); }
.kp-nav__drop .dropdown-item:hover { background: var(--kp-soft); color: var(--kp-primary); }
.kp-nav__all { display: block; margin-top: 6px; padding: 8px 12px; border-top: 1px solid var(--kp-line); font-weight: 600; font-size: 14px; text-decoration: none; }
.kp-nav__all i { font-size: 10px; margin-left: 4px; }
@media (min-width: 992px) {
  .kp-nav.collapse { display: block !important; height: auto !important; }
  .kp-nav__item.dropdown:hover > .kp-nav__drop { display: block; margin-top: 0; }
}

/* search */
.kp-header__search { flex: 0 1 260px; }
.kp-search {
  position: relative;
  margin: 0 !important;
  display: flex;
  flex-wrap: nowrap;
}
.kp-search .kp-search__input {
  height: 42px;
  border: 1px solid #cfd8e2;
  border-radius: var(--kp-radius-sm) !important;
  padding-left: 42px;
  font-size: 14px;
  color: var(--kp-ink);
}
.kp-search .kp-search__input::placeholder { color: #8a99a8; }
.kp-search .kp-search__btn {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--kp-ink);
  font-size: 16px;
}

/* action icons */
.kp-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.kp-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--kp-ink) !important;
  font-size: 21px;
  text-decoration: none;
  transition: background-color .2s;
}
.kp-icon-btn:hover, .kp-icon-btn[aria-expanded="true"] { background: var(--kp-soft); }
.kp-icon-btn::after { display: none !important; }
.kp-actions .dropdown-menu { border: 1px solid var(--kp-line); border-radius: var(--kp-radius); box-shadow: var(--kp-shadow-hover); font-size: 14px; }
.kp-cart__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--kp-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.kp-cart__menu { width: min(420px, 92vw); }
.kp-cart__summary { padding: 4px 8px 10px; font-weight: 600; color: var(--kp-ink); border-bottom: 1px solid var(--kp-line); margin-bottom: 8px; }
.kp-cart__menu .img-thumbnail { max-width: 56px; }

/* burger */
.kp-burger {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  margin-left: -9px;
}
.kp-burger span { display: block; height: 2px; background: var(--kp-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.kp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .kp-header__inner { gap: 18px; }
  .kp-nav__link { padding: 10px 10px; font-size: 16px; }
  .kp-logo__text { font-size: 23px; }
}
@media (max-width: 991.98px) {
  .kp-header__inner { flex-wrap: wrap; gap: 6px 10px; min-height: 64px; padding-top: 8px; padding-bottom: 10px; }
  .kp-logo { flex: 1 1 auto; }
  .kp-logo__text { font-size: 21px; gap: 10px; }
  .kp-logo__pill { width: 28px; height: 13px; }
  .kp-header__search { order: 5; flex: 1 1 100%; }
  .kp-nav { order: 6; flex: 1 1 100%; }
  .kp-nav__list { flex-direction: column; padding: 6px 0 4px; border-top: 1px solid var(--kp-line); margin-top: 6px; }
  .kp-nav__link { padding: 12px 4px; font-size: 17px; }
  .kp-nav__drop { position: static !important; transform: none !important; box-shadow: none; border: 0; padding: 0 0 6px 12px; }
  .kp-nav__cols { flex-direction: column; }
}

/* ---------- Sections (modules) ---------- */
.kp-section { margin: 18px 0 26px; }
.kp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.kp-section__title { margin: 0; font-size: clamp(22px, 2.3vw, 29px); }
.kp-section__more { font-size: 15px; font-weight: 500; color: var(--kp-ink); text-decoration: none; white-space: nowrap; }
.kp-section__more i { font-size: 11px; margin-left: 8px; transition: transform .2s; }
.kp-section__more:hover i { transform: translateX(3px); }

/* Breaks a module out of the .container to full viewport width */
.kp-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Hero ---------- */
.kp-hero {
  position: relative;
  background: linear-gradient(90deg, #f4f6f8 0%, #eef1f4 45%, #f3f4f5 100%);
  overflow: hidden;
  border-radius: var(--kp-radius);
  margin-bottom: 22px;
  min-height: 355px;
  display: flex;
  align-items: center;
}
.kp-hero.kp-bleed { border-radius: 0; }
.kp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 44px 40px;
}
.kp-hero.kp-bleed .kp-hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5 + 60px);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}
.kp-hero__text { max-width: 640px; }
.kp-hero__title {
  font-size: clamp(32px, 3.6vw, 50px) !important;
  line-height: 1.08;
  font-weight: 800 !important;
  color: var(--kp-ink);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.kp-hero__subtitle {
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.4;
  color: var(--kp-muted);
  margin: 0 0 30px;
}
.kp-hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.kp-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
@media (max-width: 1199.98px) {
  .kp-hero__text { max-width: 500px; }
}
@media (max-width: 991.98px) {
  .kp-hero.kp-bleed .kp-hero__inner { padding-left: 24px; }
  .kp-hero__media { width: 50%; opacity: .9; }
}
@media (max-width: 767.98px) {
  .kp-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .kp-hero__inner, .kp-hero.kp-bleed .kp-hero__inner { padding: 30px 20px 22px; }
  .kp-hero__media { position: relative; width: 100%; height: 220px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%); mask-image: linear-gradient(180deg, transparent 0, #000 25%); }
  .kp-hero__media img { object-position: center; }
  .kp-btn--lg { font-size: 17px; }
}

/* ---------- Category tiles ---------- */
.kp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.kp-tile {
  position: relative;
  display: block;
  min-height: 186px;
  padding: 22px 24px;
  border-radius: var(--kp-radius);
  background: #f6f7f9;
  box-shadow: var(--kp-shadow);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .25s, transform .25s;
}
.kp-tile:hover { box-shadow: var(--kp-shadow-hover); transform: translateY(-2px); }
.kp-tile__title {
  position: relative;
  z-index: 2;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 700;
  color: var(--kp-ink);
  letter-spacing: -0.01em;
}
.kp-tile__title i { font-size: .55em; margin-left: 10px; vertical-align: 3px; transition: transform .2s; }
.kp-tile:hover .kp-tile__title i { transform: translateX(4px); color: var(--kp-accent); }
.kp-tile__img {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 60%;
  height: 72%;
  object-fit: contain;
  object-position: right bottom;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 60% 60%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 75% at 60% 60%, #000 55%, transparent 100%);
  transition: transform .35s;
}
.kp-tile:hover .kp-tile__img { transform: scale(1.04); }

/* ---------- Features bar ---------- */
.kp-features {
  display: flex;
  align-items: stretch;
  background: var(--kp-soft);
  border-radius: var(--kp-radius);
  padding: 12px 0;
}
.kp-feature {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 18px;
  color: var(--kp-ink);
  text-decoration: none;
}
.kp-feature + .kp-feature { border-left: 1px solid #d9e0e7; }
.kp-feature__icon { font-size: 38px; color: var(--kp-accent); width: 44px; text-align: center; }
.kp-feature__text strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.25; }
.kp-feature__text small { display: block; color: var(--kp-muted); font-size: 14px; }
a.kp-feature:hover { color: var(--kp-accent); }
@media (max-width: 767.98px) {
  .kp-features { flex-direction: column; padding: 4px 0; }
  .kp-feature { justify-content: flex-start; padding: 12px 20px; }
  .kp-feature + .kp-feature { border-left: 0; border-top: 1px solid #d9e0e7; }
  .kp-feature__icon { font-size: 28px; }
  .kp-feature__text strong { font-size: 17px; }
}

/* ---------- Product cards (global: home, category, search…) ---------- */
.kp-theme .product-thumb.kp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border: 1px solid var(--kp-line);
  border-radius: var(--kp-radius);
  background: var(--kp-card);
  overflow: hidden;
  box-shadow: var(--kp-shadow);
  transition: box-shadow .25s, transform .25s;
}
.kp-theme .product-thumb.kp-card:hover { box-shadow: var(--kp-shadow-hover); transform: translateY(-2px); }
.kp-card__media {
  position: relative;
  margin: 0 !important;
  background: #f3f5f7;
  text-align: center;
  aspect-ratio: 20 / 13;
  overflow: hidden;
}
.kp-card__media a { display: block; height: 100%; }
.kp-card__media a:hover { opacity: 1 !important; }
.kp-card__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .35s; }
.kp-card:hover .kp-card__media img { transform: scale(1.04); }
.kp-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e2574c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 9px;
}
.kp-card__body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.kp-card__body .description { padding: 0 !important; flex: 1; }
.kp-card__title { font-size: 15px !important; font-weight: 500 !important; line-height: 1.35; margin: 0 0 6px; }
.kp-card__title a { color: var(--kp-text); text-decoration: none; }
.kp-card__title a:hover { color: var(--kp-primary); }
.kp-card__desc { display: none; }
.kp-card__rating { color: #f2b01e; font-size: 12px; padding: 0 0 6px; }
.kp-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 0; }
.kp-card__price { font-size: 19px; font-weight: 800; color: var(--kp-ink); line-height: 1.2; }
.kp-card__price .price-new { white-space: nowrap; }
.kp-card__price .price-old { display: block; font-size: 13px; font-weight: 500; color: var(--kp-muted); text-decoration: line-through; }
.kp-card__price .price-tax { display: block; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--kp-muted); }
.kp-theme .kp-card .button-group.kp-card__actions {
  display: flex;
  gap: 6px;
  border: 0;
  background: none;
}
.kp-theme .kp-card .kp-card__actions button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  border: 0;
  border-radius: var(--kp-radius-sm);
  font-size: 17px;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, color .2s, transform .15s;
}
.kp-theme .kp-card .kp-card__actions button + button { border-left: 0; }
.kp-theme .kp-card .kp-card__cart { background: var(--kp-accent); color: #fff; }
.kp-theme .kp-card .kp-card__cart:hover { background: color-mix(in srgb, var(--kp-accent) 82%, #000); color: #fff; }
.kp-theme .kp-card .kp-card__cart:active { transform: scale(.94); }
.kp-theme .kp-card .kp-card__wish { background: transparent; color: #9aa8b6; opacity: 0; }
.kp-theme .kp-card:hover .kp-card__wish, .kp-theme .kp-card .kp-card__wish:focus { opacity: 1; }
.kp-theme .kp-card .kp-card__wish:hover { background: var(--kp-soft); color: #e2574c; }
@media (hover: none) { .kp-theme .kp-card .kp-card__wish { opacity: 1; } }

/* Products row module grid */
.kp-products__grid {
  display: grid;
  grid-template-columns: repeat(var(--kp-cols, 6), minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1199.98px) { .kp-products__grid { grid-template-columns: repeat(min(var(--kp-cols, 6), 4), minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .kp-products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .kp-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kp-card__body { padding: 10px 12px 12px; }
  .kp-card__price { font-size: 16px; }
  .kp-theme .kp-card .kp-card__actions button { width: 36px; height: 36px; font-size: 15px; }
  .kp-theme .kp-card .kp-card__wish { display: none; }
}

/* Category / search listings */
.kp-theme #product-list > .col { margin-bottom: 18px !important; }
@media (max-width: 575.98px) {
  .kp-theme #product-list:not(.product-list) > .col { flex: 0 0 50%; max-width: 50%; padding-left: 6px; padding-right: 6px; }
}
@media (min-width: 960px) {
  .kp-theme .product-list .product-thumb.kp-card { flex-direction: row; }
  .kp-theme .product-list .kp-card__media { flex: 0 0 280px; aspect-ratio: auto; }
  .kp-theme .product-list .kp-card__body { flex: 1; }
  .kp-theme .product-list .kp-card__desc { display: block; color: var(--kp-muted); font-size: 14px; }
  .kp-theme .product-list .product-thumb .button-group { position: static; width: auto; border-left: 0; }
}

/* ---------- Footer ---------- */
.kp-theme .kp-footer {
  margin-top: 48px;
  padding: 44px 0 0;
  background: var(--kp-primary);
  border-top: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}
.kp-theme .kp-footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.kp-theme .kp-footer li { margin-bottom: 6px; }
.kp-theme .kp-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.kp-theme .kp-footer a:hover { color: #fff; }
.kp-footer__bottom {
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Misc pages ---------- */
.kp-theme #product-product h1 { font-size: clamp(24px, 2.6vw, 32px); }
.kp-theme #product-product .price-new, .kp-theme #product-product h2 { color: var(--kp-ink); }
.kp-theme #button-cart { background: var(--kp-accent); border-color: var(--kp-accent); }
.kp-theme #button-cart:hover { background: color-mix(in srgb, var(--kp-accent) 82%, #000); }
.kp-theme .list-group-item.active { background: var(--kp-primary); border-color: var(--kp-primary); }

@media (prefers-reduced-motion: reduce) {
  .kp-theme * { transition: none !important; }
}

/* neutralise core #top rules */
.kp-theme #top.kp-topbar { min-height: 0; }
.kp-theme #top.kp-topbar a, .kp-theme #top.kp-topbar li { color: #fff; text-shadow: none; }
@media (max-width: 575.98px) {
  .kp-tiles { gap: 12px; }
  .kp-tile { min-height: 132px; padding: 18px 20px; }
  .kp-tile__img { width: 52%; height: 88%; }
  .kp-section__head { align-items: center; }
  .kp-section__more { font-size: 14px; }
}

/* neutralise core gradients / breadcrumb */
.kp-theme .btn-primary { background-image: none; text-shadow: none; background-color: var(--kp-primary); border-color: var(--kp-primary); }
.kp-theme .btn-primary:hover, .kp-theme .btn-primary:focus { background-color: var(--kp-accent); border-color: var(--kp-accent); }
.kp-theme .breadcrumb { border: 0; background: transparent; padding: 0; margin: 20px 0 18px; }
.kp-theme .breadcrumb > li.breadcrumb-item { text-shadow: none; padding: 0 14px 0 0; }
.kp-theme .breadcrumb > li.breadcrumb-item:after { display: none; }
.kp-theme .breadcrumb > li.breadcrumb-item + li.breadcrumb-item::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: #a9b5c1; padding-right: 14px; float: none; }
.kp-theme .breadcrumb > li:last-child a { color: var(--kp-ink); }
.kp-theme .list-group-item { border-color: var(--kp-line); }
.kp-theme #column-left .list-group { border-radius: var(--kp-radius); overflow: hidden; }

/* mini cart */
.kp-theme #header-cart, .kp-theme #cart.kp-cart-wrap { margin: 0; }
.kp-theme .kp-cart-wrap#header-cart .kp-cart__menu li , .kp-theme .kp-cart-wrap#cart .kp-cart__menu li { min-width: 0; }
.kp-theme .kp-cart-wrap#header-cart .kp-cart__menu , .kp-theme .kp-cart-wrap#cart .kp-cart__menu { background: #fff; padding: 12px !important; }
.kp-theme .kp-cart__menu table { width: 100%; margin-bottom: 8px; }
.kp-theme .kp-cart__menu .table-bordered, .kp-theme .kp-cart__menu .table-bordered td { border: 0; }
.kp-theme .kp-cart__menu td { background: transparent; padding: 6px 4px; font-size: 14px; }
.kp-theme .kp-cart__menu p.text-end { margin: 6px 0 0; display: flex; gap: 8px; justify-content: flex-end; }
.kp-theme .kp-cart__menu p.text-end a { padding: 8px 14px; border-radius: var(--kp-radius-sm); background: var(--kp-soft); text-decoration: none; }
.kp-theme .kp-cart__menu p.text-end a:last-child { background: var(--kp-accent); color: #fff; }
.kp-theme .kp-cart-wrap#header-cart .kp-cart__menu table, .kp-theme .kp-cart-wrap#cart .kp-cart__menu table, .kp-theme .kp-cart-wrap#header-cart .kp-cart__menu tr, .kp-theme .kp-cart-wrap#cart .kp-cart__menu tr, .kp-theme .kp-cart-wrap#header-cart .kp-cart__menu td , .kp-theme .kp-cart-wrap#cart .kp-cart__menu td { border-color: var(--kp-line) !important; }

/* ---------- OpenCart 4.1 core layout resets (absolute container / footer) ---------- */
.kp-theme #container { position: static; min-height: 0; margin-bottom: 0; }
.kp-theme #content, .kp-theme #column-left, .kp-theme #column-right { padding-bottom: 0; }
.kp-theme footer.kp-footer { position: static; bottom: auto; border: 0; }
.kp-theme .kp-cart-wrap .img-thumbnail { min-width: 0; }
.kp-theme a.btn { color: var(--bs-btn-color); }
.kp-theme a.btn:hover { color: var(--bs-btn-hover-color); }
.kp-theme a.btn-primary, .kp-theme a.btn-primary:hover { color: #fff; }
