.ektypo-theme {
  --ektypo-ink: #272839;
  --ektypo-muted: #57596a;
  --ektypo-accent: #ad174c;
  --ektypo-accent-hover: #8e123e;
  --ektypo-line: #e9e4e7;
  --ektypo-surface: #fff;
  --ektypo-soft: #f7f4f5;
  --ektypo-radius: 14px;
  background: #fff;
  color: var(--ektypo-ink);
  font-family: system-ui, "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.ektypo-theme a { color: var(--ektypo-accent); }
.ektypo-theme a:hover { color: var(--ektypo-accent-hover); }
.ektypo-theme :focus-visible { outline: 2px solid var(--ektypo-accent); outline-offset: 3px; }

.ektypo-theme #top {
  min-height: 0;
  margin: 0;
  padding: 1px 0;
  background: var(--ektypo-soft);
  border-bottom: 1px solid var(--ektypo-line);
}

.ektypo-theme #top .btn-link,
.ektypo-theme #top-links a {
  color: var(--ektypo-muted);
  font-size: 13px;
  text-shadow: none;
}

.ektypo-theme #top-links { padding-top: 0; }
.ektypo-theme #top-links > ul { margin-bottom: 0; }
.ektypo-theme #top-links > ul > li { padding-right: 0; padding-left: 12px; }
.ektypo-theme #top-links > ul > li > a { display: inline-flex; gap: 6px; align-items: center; min-height: 39px; }
.ektypo-theme #top .btn-link:hover,
.ektypo-theme #top-links a:hover { color: var(--ektypo-accent); }

.ektypo-theme .ektypo-header-main {
  display: grid;
  grid-template-columns: minmax(160px, 255px) minmax(150px, 1fr) auto;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
  padding: 17px 0 15px;
}

.ektypo-theme .ektypo-brand { grid-column: 1; }
.ektypo-theme .ektypo-header-tools { display: flex; grid-column: 2; align-items: center; gap: 8px; min-width: 0; }
.ektypo-theme .ektypo-header-search { flex: 1; min-width: 0; }
.ektypo-theme .ektypo-header-tools > #cart { flex: 0 0 auto; width: auto; }
.ektypo-theme .ektypo-partner {
  grid-column: 3;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--ektypo-line);
  border-radius: 22px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--ektypo-ink);
}

.ektypo-theme .ektypo-partner:hover {
  color: var(--ektypo-accent);
  border-color: #e9bdcc;
  background: #fdf5f8;
}

.ektypo-theme #logo,
.ektypo-theme #search,
.ektypo-theme #cart { margin: 0; }

.ektypo-theme #logo img { width: 100%; height: auto; }
.ektypo-theme #logo a { display: block; }

.ektypo-theme #search .input-lg {
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid var(--ektypo-line);
  border-right: 0;
  border-radius: 11px 0 0 11px;
  background: var(--ektypo-soft);
  color: var(--ektypo-ink);
  box-shadow: none;
  font-size: 15px;
}

.ektypo-theme #search .input-lg::placeholder { color: var(--ektypo-muted); opacity: 1; }
.ektypo-theme #search .input-lg:focus { border-color: #d29ab0; }
.ektypo-theme #search .btn-lg {
  width: 52px;
  height: 47px;
  padding: 0;
  border: 1px solid var(--ektypo-line);
  border-radius: 0 11px 11px 0;
  background: var(--ektypo-soft);
  box-shadow: none;
  color: var(--ektypo-accent);
}

.ektypo-theme #search .btn-lg:hover { background: #f5e4eb; }
.ektypo-theme #cart > .btn {
  min-height: 45px;
  padding: 6px 12px;
  background: var(--ektypo-ink);
  border-color: var(--ektypo-ink);
  border-radius: 10px;
  text-shadow: none;
  box-shadow: none;
}

.ektypo-theme #menu {
  min-height: 48px;
  margin-bottom: 21px;
  background: #2a2b3b;
  background-image: none;
  border: 1px solid #2a2b3b;
  border-radius: 12px;
}

.ektypo-theme #menu .navbar-nav > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 17px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: none;
}

.ektypo-theme #menu .navbar-nav > li > a:hover,
.ektypo-theme #menu .navbar-nav > li.open > a { background: #414253; }
.ektypo-theme #menu .nav > li > a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.ektypo-theme #menu .dropdown-menu {
  padding: 9px;
  border: 1px solid var(--ektypo-line);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(45, 31, 42, .12);
}

.ektypo-theme #menu .dropdown-inner a,
.ektypo-theme #menu .see-all { color: var(--ektypo-ink); font-size: 13px; text-shadow: none; }

.ektypo-theme #menu .dropdown-inner li a:hover,
.ektypo-theme #menu .see-all:hover {
  background: #f9ebf0;
  color: var(--ektypo-accent-hover);
  border-radius: 7px;
}

.ektypo-theme #menu .see-all { border-color: var(--ektypo-line); }
.ektypo-theme #menu #category { color: #fff; font-size: 14px; text-shadow: none; }
.ektypo-theme #menu .btn-navbar {
  min-width: 44px;
  min-height: 44px;
  margin: 0 4px 0 0;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow: none;
}

.ektypo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  overflow: hidden;
  min-height: 350px;
  background: #f7f0f2;
  border-radius: 19px;
  border: 1px solid #f0e4e8;
}

.ektypo-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4.1vw, 60px);
}

.ektypo-hero h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  color: var(--ektypo-ink);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.ektypo-hero p {
  max-width: 41ch;
  margin: 0;
  color: var(--ektypo-muted);
  font-size: clamp(15px, 1.55vw, 17px);
}

.ektypo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
}

.ektypo-theme .ektypo-hero-primary,
.ektypo-theme .ektypo-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ektypo-theme .ektypo-hero-primary { background: var(--ektypo-accent); color: #fff; }
.ektypo-theme .ektypo-hero-primary:hover { background: var(--ektypo-accent-hover); }
.ektypo-theme .ektypo-hero-secondary { padding-inline: 0; color: var(--ektypo-ink); }
.ektypo-theme .ektypo-hero-secondary:hover { color: var(--ektypo-accent-hover); }

.ektypo-hero-photo { position: relative; min-height: 250px; background: #dfd4d0; }
.ektypo-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.ektypo-categories {
  margin: 31px 0 42px;
  scroll-margin-top: 16px;
}

.ektypo-categories h2,
.ektypo-featured h2 {
  margin: 0 0 14px;
  color: var(--ektypo-ink);
  font-size: clamp(22px, 2.45vw, 29px);
  font-weight: 730;
  letter-spacing: -.025em;
}

.ektypo-category-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ektypo-theme .ektypo-category-list a {
  display: flex;
  gap: 9px;
  align-items: center;
  height: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--ektypo-line);
  border-radius: var(--ektypo-radius);
  color: var(--ektypo-ink);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
}

.ektypo-theme .ektypo-category-list a:hover {
  color: var(--ektypo-accent-hover);
  border-color: #e9bdcc;
  background: #fff8fa;
}

.ektypo-category-icon {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  height: 32px;
  border-radius: 9px;
  background: #f8e6ed;
  color: var(--ektypo-accent);
}

.ektypo-category-arrow { margin-inline-start: auto; color: var(--ektypo-accent); }

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

.ektypo-theme .product-thumb {
  overflow: hidden;
  border: 1px solid var(--ektypo-line);
  border-radius: var(--ektypo-radius);
  background: var(--ektypo-surface);
}

.ektypo-theme .product-thumb .caption h4 a { color: var(--ektypo-ink); font-weight: 680; }
.ektypo-theme .product-thumb .caption h4 a:hover { color: var(--ektypo-accent-hover); }
.ektypo-theme .product-thumb .button-group { background: var(--ektypo-soft); border-color: var(--ektypo-line); }
.ektypo-theme .product-thumb .button-group button { color: var(--ektypo-muted); background: var(--ektypo-soft); }
.ektypo-theme .product-thumb .button-group button:hover { background: #f7e9ef; color: var(--ektypo-accent); }

.ektypo-featured .product-layout { min-width: 0; width: auto; }
.ektypo-featured .product-thumb { position: relative; display: flex; flex-direction: column; height: 100%; margin: 0; }
.ektypo-featured .product-thumb:hover { border-color: #e2c6d0; }
.ektypo-featured .product-thumb .image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 8px;
  background: #faf8f9;
}
.ektypo-featured .product-thumb .image a { display: grid; place-items: center; width: 100%; height: 100%; }
.ektypo-featured .product-thumb .image a:hover { opacity: 1; }
.ektypo-featured .product-thumb .image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 7px; }
.ektypo-product-placeholder .fa { color: #7d7280; font-size: 29px; }
.ektypo-featured .product-thumb .caption { min-height: 0; padding: 13px 15px 17px; }
.ektypo-featured .product-thumb h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.ektypo-featured .product-thumb .caption > p:not(.price) {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ektypo-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ektypo-theme .ektypo-wishlist {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ektypo-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ektypo-accent);
  font-size: 17px;
}
.ektypo-theme .ektypo-wishlist:hover { background: #faeaf0; }

.ektypo-theme #common-home .slideshow.swiper-viewport {
  width: 100%;
  max-width: 830px;
  margin: 28px auto 38px;
  border: 1px solid var(--ektypo-line);
  border-radius: var(--ektypo-radius);
  box-shadow: none;
}
.ektypo-theme #common-home .slideshow .swiper-container { border-radius: inherit; }

.ektypo-theme .breadcrumb {
  margin-bottom: 20px;
  padding: 9px 11px;
  background: var(--ektypo-soft);
  border: 1px solid var(--ektypo-line);
  border-radius: 10px;
}

.ektypo-theme .breadcrumb a { color: var(--ektypo-muted); }
.ektypo-theme .form-control { border-color: #d9d3d7; }
.ektypo-theme .btn-primary {
  background: var(--ektypo-accent);
  border-color: var(--ektypo-accent);
  border-radius: 8px;
  box-shadow: none;
  color: #fff;
  text-shadow: none;
}
.ektypo-theme .btn-primary:hover,
.ektypo-theme .btn-primary:focus { background: var(--ektypo-accent-hover); border-color: var(--ektypo-accent-hover); }

.ektypo-theme footer { padding: 34px 0 18px; background: #2a2b3b; border-top: 0; color: #e1dfe6; }
.ektypo-theme footer h5 { margin-top: 0; color: #fff; font: inherit; font-weight: 720; }
.ektypo-theme footer > .container > .row { row-gap: 15px; }
.ektypo-theme footer a { display: inline-block; padding: 3px 0; color: #ede9ef; }
.ektypo-theme footer a:hover { color: #fff; text-decoration: underline; }
.ektypo-theme footer hr { border-color: #515265; }
.ektypo-theme footer :focus-visible { outline-color: #fff; }

@media (min-width: 768px) {
  .ektypo-theme #menu .dropdown-inner { max-height: min(62vh, 470px); overflow-y: auto; }
}

@media (max-width: 991px) {
  .ektypo-theme .ektypo-header-main { grid-template-columns: minmax(150px, 195px) minmax(135px, 1fr) auto; gap: 12px; }
  .ektypo-theme #menu .navbar-nav > li > a { padding-inline: 12px; }
  .ektypo-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ektypo-category-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ektypo-theme #top-links > ul > li { padding-left: 5px; }
  .ektypo-theme #top-links > ul > li > a { justify-content: center; min-width: 36px; min-height: 40px; }
  .ektypo-theme .ektypo-header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px 8px;
    padding: 12px 0;
  }
  .ektypo-theme .ektypo-brand { grid-area: 1 / 1; }
  .ektypo-theme #logo { max-width: 224px; }
  .ektypo-theme .ektypo-partner { grid-area: 1 / 2; min-height: 37px; padding-inline: 8px; font-size: 12px; }
  .ektypo-theme .ektypo-header-tools { grid-area: 2 / 1 / 3 / -1; }
  .ektypo-theme #cart > .dropdown-menu { min-width: 0; width: min(350px, calc(100vw - 30px)); }
  .ektypo-theme #search .input-lg, .ektypo-theme #search .btn-lg { height: 44px; min-height: 44px; }
  .ektypo-theme #menu { min-height: 45px; margin-bottom: 15px; }
  .ektypo-theme #menu .navbar-header { min-height: 45px; }
  .ektypo-theme #menu .navbar-nav > li > a { padding-inline: 15px; }
  .ektypo-theme #menu .dropdown-menu { box-shadow: none; border: 0; }
  .ektypo-theme #menu .dropdown-inner a, .ektypo-theme #menu a.see-all { color: #fff; }
  .ektypo-theme #menu a.see-all { border-color: #646578; }
  .ektypo-theme #menu .dropdown-inner { display: block; }
  .ektypo-theme #menu .dropdown-inner ul { display: block; }
  .ektypo-theme #menu .dropdown-inner a { min-width: 0; white-space: normal; }

  .ektypo-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 16px; }
  .ektypo-hero-copy { padding: 23px 20px 17px; }
  .ektypo-hero h1 { margin-bottom: 10px; font-size: clamp(31px, 9vw, 42px); }
  .ektypo-hero p { font-size: 14px; }
  .ektypo-hero-actions { margin-top: 13px; gap: 3px 11px; }
  .ektypo-theme .ektypo-hero-primary,
  .ektypo-theme .ektypo-hero-secondary { min-height: 42px; gap: 7px; font-size: 13px; }
  .ektypo-hero-photo { min-height: clamp(165px, 46vw, 265px); }
  .ektypo-categories { margin: 23px 0 30px; }
  .ektypo-category-list, .ektypo-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ektypo-theme .ektypo-category-list a { min-height: 62px; padding: 8px; gap: 6px; font-size: 13px; }
  .ektypo-category-icon { flex-basis: 27px; height: 27px; }
  .ektypo-featured .product-thumb .image { padding: 5px; }
  .ektypo-featured .product-thumb .caption { padding: 9px 10px 12px; }
  .ektypo-featured .product-thumb h4 { font-size: 14px; }
  .ektypo-featured .product-thumb .caption > p:not(.price) { font-size: 12px; }
  .ektypo-theme .ektypo-wishlist { width: 36px; height: 36px; top: 6px; right: 6px; }
  .ektypo-theme footer { padding-top: 24px; }
  .ektypo-theme footer > .container > .row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
