/* ============================================================
   FALMEC DARK — Custom Joomla 6 Template
   v1.0.0 | 2026
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Color palette */
  --clr-bg:          #0d0d0d;
  --clr-bg-2:        #151515;
  --clr-bg-3:        #1e1e1e;
  --clr-surface:     #242424;
  --clr-border:      #2e2e2e;
  --clr-border-2:    #3a3a3a;

  --clr-text:        #e8e8e8;
  --clr-text-muted:  #9a9a9a;
  --clr-text-light:  #c4c4c4;
  --clr-white:       #ffffff;

  --clr-gold:        #b3202a;
  --clr-gold-light:  #d02c37;
  --clr-gold-dark:   #8f1820;
  --clr-gold-bg:     rgba(179, 32, 42, 0.08);

  --clr-success:     #4caf50;
  --clr-error:       #ef5350;
  --clr-warning:     #d9534f;
  --clr-info:        #42a5f5;

  /* Typography */
  --font-primary:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:      Georgia, 'Times New Roman', serif;
  --font-mono:       'Fira Code', 'Courier New', monospace;

  --fs-xs:    0.75rem;   /* 12px */
  --fs-sm:    0.875rem;  /* 14px */
  --fs-base:  1rem;      /* 16px */
  --fs-md:    1.125rem;  /* 18px */
  --fs-lg:    1.25rem;   /* 20px */
  --fs-xl:    1.5rem;    /* 24px */
  --fs-2xl:   2rem;      /* 32px */
  --fs-3xl:   2.5rem;    /* 40px */
  --fs-4xl:   3.5rem;    /* 56px */

  --fw-light:  300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;

  --lh-tight:  1.25;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* Spacing */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;

  /* Layout */
  --container-max:  1320px;
  --container-pad:  1.5rem;
  --header-h:       72px;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-full:    9999px;

  /* Transitions */
  --transition-fast:  0.15s ease;
  --transition-base:  0.25s ease;
  --transition-slow:  0.4s ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.5);
  --shadow-md:  0 4px 12px rgba(0,0,0,.55);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.6);
  --shadow-gold: 0 0 20px rgba(179, 32, 42, 0.25);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.falmec-dark { background-color: var(--clr-bg); }

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--clr-gold-light); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Container ─────────────────────────────────────────────── */
.falmec-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

/* ── Typography Helpers ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--clr-white);
  font-weight: var(--fw-semi);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p { margin-bottom: var(--sp-4); color: var(--clr-text-light); }
p:last-child { margin-bottom: 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary,
a.btn-primary,
button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.75rem;
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-dark) 100%);
  color: #111 !important;
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  transition: opacity var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
  color: #111 !important;
}

.btn-secondary,
a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.6rem;
  background: transparent;
  color: var(--clr-gold) !important;
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-gold);
  transition: background var(--transition-base), color var(--transition-base);
}
.btn-secondary:hover {
  background: var(--clr-gold-bg);
  color: var(--clr-gold-light) !important;
}

/* ── Header ────────────────────────────────────────────────── */
.falmec-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition-base);
}
.falmec-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.7);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  height: 100%;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-img { height: 36px; width: auto; }
.logo-text {
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  color: var(--clr-white);
  text-transform: uppercase;
  align-items: center;
  gap: var(--sp-2);
}
.logo-text::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--clr-gold);
  border-radius: 50%;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

/* Nav */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  height: 100%;
}
.header-nav li { position: relative; height: 100%; display: flex; align-items: center; }
.header-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-4);
  color: var(--clr-text-light);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-base);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--sp-4);
  right: var(--sp-4);
  height: 2px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}
.header-nav a:hover,
.header-nav .active > a,
.header-nav .current > a {
  color: var(--clr-white);
}
.header-nav a:hover::after,
.header-nav .active > a::after,
.header-nav .current > a::after { transform: scaleX(1); }

/* Dropdown */
.header-nav .nav-child,
.header-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  height: auto;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-top: 2px solid var(--clr-gold);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 100;
}
.header-nav li:hover > .nav-child,
.header-nav li:hover > ul ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-nav .nav-child li,
.header-nav ul ul li {
  height: auto;
  display: block;
}
.header-nav .nav-child a,
.header-nav ul ul a {
  height: auto;
  padding: var(--sp-3) var(--sp-5);
  display: block;
  border-bottom: 1px solid var(--clr-border);
  text-transform: none;
  font-weight: var(--fw-normal);
  font-size: var(--fs-sm);
}
.header-nav .nav-child a::after,
.header-nav ul ul a::after { display: none; }
.header-nav .nav-child li:last-child a,
.header-nav ul ul li:last-child a { border-bottom: none; }

/* Header Actions */
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.header-actions .mod-cart-count {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-text-light);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}
.header-actions .mod-cart-count:hover { color: var(--clr-gold); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--sp-1);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--clr-text-light);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Banner / Hero ─────────────────────────────────────────── */
.falmec-banner {
  position: relative;
  overflow: hidden;
  background: var(--clr-bg-2);
}
.falmec-banner .banner-inner,
.falmec-banner > div {
  min-height: 420px;
  display: flex;
  align-items: center;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.falmec-breadcrumb-bar {
  background: var(--clr-bg-2);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-3) 0;
}
.falmec-breadcrumb-bar .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}
.falmec-breadcrumb-bar .breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); }
.falmec-breadcrumb-bar .breadcrumb li::after { content: '/'; color: var(--clr-border-2); }
.falmec-breadcrumb-bar .breadcrumb li:last-child::after { display: none; }
.falmec-breadcrumb-bar .breadcrumb a { color: var(--clr-text-muted); }
.falmec-breadcrumb-bar .breadcrumb a:hover { color: var(--clr-gold); }

/* ── Main Layout ───────────────────────────────────────────── */
.falmec-main {
  flex: 1;
  padding: var(--sp-10) 0;
}

.content-layout {
  display: grid;
  gap: var(--sp-8);
}
.content-layout.has-right-sidebar   { grid-template-columns: 1fr 280px; }
.content-layout.has-left-sidebar    { grid-template-columns: 280px 1fr; }
.content-layout.has-both-sidebars   { grid-template-columns: 240px 1fr 240px; }

.component-area { min-width: 0; }

/* Sidebar */
.sidebar { min-width: 0; }
.sidebar .sidebar-module {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.sidebar .sidebar-module h3,
.sidebar .sidebar-module .module-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
}

/* System Messages */
.falmec-main .alert,
#system-message .alert {
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  border: 1px solid;
  font-size: var(--fs-sm);
}
.alert-success { background: rgba(76,175,80,.1);  border-color: var(--clr-success); color: var(--clr-success); }
.alert-danger   { background: rgba(239,83,80,.1);  border-color: var(--clr-error);   color: var(--clr-error); }
.alert-warning  { background: rgba(255,152,0,.1);  border-color: var(--clr-warning); color: var(--clr-warning); }
.alert-info     { background: rgba(66,165,245,.1); border-color: var(--clr-info);    color: var(--clr-info); }

/* ── Forms ─────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(179,32,42,.15);
}
input::placeholder, textarea::placeholder { color: var(--clr-text-muted); }
label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-light);
  margin-bottom: var(--sp-2);
}

/* ── Bottom sections ───────────────────────────────────────── */
.falmec-bottom-a {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-16) 0;
}
.falmec-bottom-b {
  background: var(--clr-bg-3);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-12) 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.falmec-footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-16) 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-16);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--clr-border);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  color: var(--clr-white);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-4);
}
.footer-logo:hover { color: var(--clr-gold); }

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-normal);
}

.footer-modules {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}
.footer-module h3, .footer-module .module-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-5);
}
.footer-module ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-module a {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}
.footer-module a:hover { color: var(--clr-gold); }

.footer-bottom {
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin: 0;
}

/* ── Error page ────────────────────────────────────────────── */
.error-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  text-align: center;
  gap: var(--sp-4);
}
.error-logo {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  color: var(--clr-white);
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
}
.error-code {
  font-size: 7rem;
  font-weight: var(--fw-bold);
  color: var(--clr-gold);
  line-height: 1;
  letter-spacing: -0.04em;
}
.error-title { font-size: var(--fs-2xl); color: var(--clr-white); }
.error-desc  { color: var(--clr-text-muted); max-width: 420px; }

/* ── Utility classes ───────────────────────────────────────── */
.text-gold   { color: var(--clr-gold); }
.text-muted  { color: var(--clr-text-muted); }
.text-center { text-align: center; }
.mt-auto     { margin-top: auto; }

/* Section title */
.section-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semi);
  color: var(--clr-white);
  text-align: center;
  margin-bottom: var(--sp-12);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--clr-gold);
  margin: var(--sp-4) auto 0;
}

/* ── Joomla generic overrides ──────────────────────────────── */
.com-content-article__header h1,
.page-header h1 {
  font-size: var(--fs-2xl);
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}
.com-content-article__body p,
.article-info,
.page-header + div p {
  color: var(--clr-text-light);
  line-height: var(--lh-loose);
}

/* Login form */
.mod-login, .com-users-login {
  max-width: 420px;
  margin: 0 auto;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.mod-login h3, .com-users-login h2 {
  text-align: center;
  margin-bottom: var(--sp-8);
  font-size: var(--fs-xl);
}

/* Tags, badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.65em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--clr-gold-bg);
  color: var(--clr-gold);
  border: 1px solid rgba(179,32,42,.3);
}

/* Tables */
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th {
  background: var(--clr-bg-3);
  color: var(--clr-text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  text-align: left;
}
.table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-light);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,.02); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }

  .content-layout.has-right-sidebar,
  .content-layout.has-left-sidebar { grid-template-columns: 1fr 240px; }
  .content-layout.has-both-sidebars { grid-template-columns: 200px 1fr 200px; }

  .footer-grid { grid-template-columns: 220px 1fr; gap: var(--sp-10); }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --container-pad: 1rem;
  }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .header-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--clr-bg-2);
    border-bottom: 1px solid var(--clr-border);
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    z-index: 999;
  }
  .header-nav.open { max-height: 80vh; overflow-y: auto; }

  .header-nav ul {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: var(--sp-4);
    gap: 0;
  }
  .header-nav li { height: auto; }
  .header-nav a {
    height: auto;
    padding: var(--sp-4) var(--sp-2);
    border-bottom: 1px solid var(--clr-border);
    font-size: var(--fs-base);
    text-transform: none;
  }
  .header-nav a::after { display: none; }
  .header-nav .nav-child,
  .header-nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding-left: var(--sp-6);
    display: none;
  }
  .header-nav li.open > .nav-child,
  .header-nav li.open > ul ul { display: block; }

  /* Layout */
  .content-layout,
  .content-layout.has-right-sidebar,
  .content-layout.has-left-sidebar,
  .content-layout.has-both-sidebars {
    grid-template-columns: 1fr;
  }
  .sidebar { order: 2; }
  .component-area { order: 1; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-modules { gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

}

@media (max-width: 480px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }


  .falmec-main { padding: var(--sp-6) 0; }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg-2); }
::-webkit-scrollbar-thumb { background: var(--clr-border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-muted); }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: rgba(179,32,42,.25); color: var(--clr-white); }

/* ============================================================
   FALMEC DARK v1.1 — layout + HikaShop overrides
   ============================================================ */

/* ── Header ─────────────────────────────────────────────── */
.header-nav .mod-menu,
.header-nav ul.nav { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; height: 100%; }
.header-nav .mod-menu > li > a,
.header-nav ul.nav > li > a { font-size: 13px; letter-spacing: .12em; padding: 0 18px; }
.header-actions .hikashop_cart_module,
.header-actions .hikashop_cart_module * { font-size: 13px; }
.header-actions .hikashop_cart_module a,
.header-actions .hikashop_small_cart_checkout_link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--clr-text-light); padding: 8px 14px;
  border: 1px solid var(--clr-border-2); border-radius: 999px;
  white-space: nowrap; transition: border-color .2s, color .2s;
}
.header-actions .hikashop_cart_module a:hover { border-color: var(--clr-gold); color: var(--clr-gold); }
.header-actions .hikashop_cart_module a::before {
  content: ''; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/contain no-repeat;
}
.header-actions .hikashop_cart_module .hikashop_cart_empty_message,
.header-actions .hikashop_cart_module .hikashop_small_cart_total_title { color: var(--clr-text-muted); }

/* ── Breadcrumb (mod_breadcrumbs markup) ───────────────── */
.falmec-breadcrumb-bar { padding: 14px 0; background: transparent; }
.falmec-breadcrumb-bar ol.breadcrumb,
.falmec-breadcrumb-bar .mod-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--clr-text-muted); }
.falmec-breadcrumb-bar .mod-breadcrumbs__here,
.falmec-breadcrumb-bar .mod-breadcrumbs__divider { display: none; }
.falmec-breadcrumb-bar .breadcrumb-item { display: flex; align-items: center; gap: 8px; }
.falmec-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--clr-border-2); }
.falmec-breadcrumb-bar .breadcrumb-item::after { content: none !important; }
.falmec-breadcrumb-bar .breadcrumb-item.active { color: var(--clr-text-light); }
.falmec-breadcrumb-bar a { color: var(--clr-text-muted); }
.falmec-breadcrumb-bar a:hover { color: var(--clr-gold); }

/* ── Main ───────────────────────────────────────────────── */
.falmec-main { padding: 32px 0 80px; }
.component-area h1,
.component-area .page-header h1,
.component-area .hikashop_category_name_title,
.falmec-page-title {
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; color: var(--clr-white);
  letter-spacing: -.01em; line-height: 1.15; margin: 0 0 28px;
}
.component-area .page-header { border: 0; padding: 0; margin: 0; }

/* ── HikaShop: reset grid ──────────────────────────────── */
.component-area .hikashop_products_listing,
.component-area .hikashop_subcategories_listing { margin: 0; }
.component-area .hikashop_products,
.component-area .hikashop_subcategories { display: block !important; width: 100% !important; }
.component-area .hikashop_products > .hk-row-fluid,
.component-area .hikashop_subcategories > .hk-row-fluid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin: 0 !important;
}
.component-area .hikashop_products > .hk-row-fluid::before,
.component-area .hikashop_products > .hk-row-fluid::after,
.component-area .hikashop_subcategories > .hk-row-fluid::before,
.component-area .hikashop_subcategories > .hk-row-fluid::after { content: none !important; display: none !important; }
.component-area .hikashop_product[class*="hkc-"],
.component-area .hikashop_category[class*="hkc-"] {
  width: auto !important; max-width: none !important; float: none !important;
  padding: 0 !important; margin: 0 !important; flex: none !important;
  grid-column: auto !important;
}
.component-area .hikashop_container { height: 100%; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.component-area .hikashop_subcontainer,
.component-area .hikashop_subcontainer.thumbnail {
  min-height: 0 !important; height: 100%;
  display: flex; flex-direction: column;
  margin: 0 !important; padding: 0 !important;
  background: var(--clr-bg-2) !important;
  border: 1px solid var(--clr-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: hidden;
  text-align: left !important;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.component-area .hikashop_subcontainer:hover {
  border-color: rgba(179,32,42,.55) !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.55) !important;
}
.component-area .hikashop_subcontainer > br { display: none; }
.component-area .hikashop_listing_img_title { display: contents; }

/* Image well: product photos are on white, so give them a clean light stage */
.component-area .hikashop_product_image,
.component-area .hikashop_category_image {
  order: 0;
  display: block !important; width: 100% !important; height: auto !important;
  aspect-ratio: 1 / 1;
  background: #f4f3f0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  overflow: hidden;
}
.component-area .hikashop_product_image_subdiv,
.component-area .hikashop_product_image > a,
.component-area .hikashop_product_image_subdiv > a,
.component-area .hikashop_category_image > a {
  display: flex !important; align-items: center; justify-content: center;
  width: 100% !important; height: 100% !important; padding: 8% !important;
  margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
.component-area .hikashop_product_image img,
.component-area .hikashop_category_image img {
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  object-fit: contain; display: block; mix-blend-mode: multiply;
  transition: transform .4s ease;
}
.component-area .hikashop_subcontainer:hover .hikashop_product_image img { transform: scale(1.04); }

/* Text block */
.component-area .hikashop_product_name {
  order: 1; display: block; padding: 18px 20px 6px; margin: 0 !important;
  font-size: 15px; font-weight: 500; line-height: 1.4; min-height: calc(1.4em * 2 + 24px); text-align: left !important;
}
.component-area .hikashop_product_name a {
  color: var(--clr-text) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.component-area .hikashop_product_name a:hover { color: var(--clr-gold-light) !important; }
.component-area .hikashop_product_code_list { order: 2; display: block; padding: 0 20px; font-size: 12px; color: var(--clr-text-muted); letter-spacing: .04em; }
.component-area .hikashop_product_code_list:empty { display: none; }
.component-area .hikashop_product_price_full {
  order: 3; display: block; padding: 6px 20px 0; margin-top: auto !important;
  text-align: left !important;
}
.component-area .hikashop_product_price {
  font-size: 20px !important; font-weight: 600 !important; color: var(--clr-white) !important;
  letter-spacing: -.01em; white-space: nowrap;
}
.component-area .hikashop_product_price_before_discount { color: var(--clr-text-muted) !important; font-size: 14px; text-decoration: line-through; margin-right: 8px; }
.component-area .hikashop_product_price_per_unit,
.component-area .hikashop_product_stock_count,
.component-area .hikashop_product_quantity_div.hikashop_product_quantity_input_div_default,
.component-area .hikashop_product_quantity_change_div_default,
.component-area .hikashop_product_vote,
.component-area .hikashop_listing_img_title + br { display: none !important; }
.component-area .hikashop_subcontainer form.hikashop_aligned_btn,
.component-area .hikashop_subcontainer > form {
  order: 4; padding: 16px 20px 20px; margin: 0 !important;
}
.component-area .hikashop_quantity_form { margin: 0 !important; }
.component-area .hikashop_subcontainer .hikabtn.hikacart,
.component-area .hikashop_subcontainer .hikacart {
  width: 100%; justify-content: center;
}
.component-area .hikashop_subcontainer .hikashop_product_details_button,
.component-area .hikashop_subcontainer .hikashop_product_more_button { order: 4; margin: 16px 20px 20px; }

/* Category cards */
.component-area .hikashop_category .hikashop_subcontainer { position: relative; }
.component-area .hikashop_category_name {
  order: 1; display: block; padding: 18px 20px 20px; margin: 0 !important;
  font-size: 17px; font-weight: 500; text-align: left !important;
}
.component-area .hikashop_category_name a { color: var(--clr-white) !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.component-area .hikashop_category_name a::after {
  content: '→'; color: var(--clr-gold); font-size: 18px; transition: transform .25s ease;
}
.component-area .hikashop_category:hover .hikashop_category_name a::after { transform: translateX(4px); }
.component-area .hikashop_category_name a::before { content: ''; position: absolute; inset: 0; z-index: 1; }
/* hide the default barcode placeholder, show a neutral monogram instead */
.component-area .hikashop_category_image img[src*="barcode.png"] { opacity: 0; }
.component-area .hikashop_category_image:has(img[src*="barcode.png"]) {
  background: radial-gradient(120% 90% at 50% 0%, #2a1a1b 0%, var(--clr-bg-3) 60%) !important;
  position: relative;
}
.component-area .hikashop_category_image:has(img[src*="barcode.png"])::after {
  content: 'FALMEC'; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(179,32,42,.35); font-weight: 700; letter-spacing: .4em; font-size: 14px; pointer-events: none;
}

/* ── HikaShop buttons ─────────────────────────────────── */
.hikabtn, a.hikabtn, button.hikabtn, .hikabtn.hikacart, .hikabtn-primary, .hikabtn-success {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px !important;
  background: var(--clr-gold) !important; background-image: none !important;
  color: #111 !important; border: 1px solid var(--clr-gold) !important; border-radius: 8px !important;
  font-size: 13px !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: none !important; box-shadow: none !important; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hikabtn:hover, .hikabtn.hikacart:hover { background: var(--clr-gold-light) !important; border-color: var(--clr-gold-light) !important; color: #111 !important; }
.hikabtn.add_in_progress { opacity: .6; }

/* ── Listing toolbar / pagination ─────────────────────── */
.component-area .hikashop_products_pagination { margin-top: 40px; }
.component-area .list-footer.pagination { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.component-area .list-footer .limit { display: flex; align-items: center; gap: 10px; color: var(--clr-text-muted); font-size: 13px; }
.component-area .list-footer .limit select { width: auto; padding: 6px 30px 6px 12px; }
.component-area ul.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.component-area ul.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  background: var(--clr-bg-2); border: 1px solid var(--clr-border); border-radius: 8px;
  color: var(--clr-text-light); font-size: 14px;
}
.component-area ul.pagination a.page-link:hover { border-color: var(--clr-gold); color: var(--clr-gold); }
.component-area ul.pagination .active .page-link { background: var(--clr-gold); border-color: var(--clr-gold); color: #111; font-weight: 600; }
.component-area ul.pagination .disabled .page-link { opacity: .35; }
.component-area .pagination-toolbar .counter,
.component-area .hikashop_results_counter { color: var(--clr-text-muted); font-size: 13px; }

/* ── Product page ──────────────────────────────────────── */
.hikashop_product_page { color: var(--clr-text-light); }
.hikashop_product_page .hikashop_product_left_part,
.hikashop_product_page .hikashop_product_right_part { float: none !important; width: auto !important; }
.hikashop_product_page .hk-row-fluid { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hikashop_product_page .hk-row-fluid > [class*="hkc-"] { width: auto !important; float: none !important; padding: 0 !important; }
.hikashop_product_page #hikashop_product_image_main,
.hikashop_product_page .hikashop_product_main_image_thumb,
.hikashop_product_page .hikashop_main_image_div {
  background: #f4f3f0; border-radius: 14px; padding: 6%; display: flex; align-items: center; justify-content: center;
}
.hikashop_product_page .hikashop_main_image_div img,
.hikashop_product_page #hikashop_main_image { mix-blend-mode: multiply; max-height: 560px; width: auto; margin: 0 auto; }
.hikashop_product_page .hikashop_small_image_div img { background: #f4f3f0; border-radius: 8px; padding: 6px; }
.hikashop_product_page #hikashop_product_name_main,
.hikashop_product_page h1 { font-size: clamp(26px, 3vw, 36px); color: var(--clr-white); font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
.hikashop_product_page .hikashop_product_price_main,
.hikashop_product_page .hikashop_product_price_main .hikashop_product_price { font-size: 30px !important; font-weight: 600; color: var(--clr-white) !important; }
.hikashop_product_page .hikashop_product_price_per_unit,
.hikashop_product_page .hikashop_product_stock_count { color: var(--clr-text-muted); font-size: 13px; }
.hikashop_product_page .hikashop_product_quantity_main { margin: 24px 0; }
.hikashop_product_page .hikashop_product_description_main { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--clr-border); line-height: 1.75; }
.hikashop_product_page .hikashop_product_description_main table { width: 100%; border-collapse: collapse; }
.hikashop_product_page .hikashop_product_description_main td,
.hikashop_product_page .hikashop_product_description_main th { padding: 10px 12px; border-bottom: 1px solid var(--clr-border); }

/* quantity controls (product page) */
.hikashop_product_quantity_field { width: 64px !important; height: 44px; text-align: center; display: inline-block !important; }
.hikashop_product_quantity_field_change {
  background: var(--clr-bg-3) !important; color: var(--clr-text) !important; border: 1px solid var(--clr-border-2) !important;
  width: 44px; height: 44px !important; padding: 0 !important; font-size: 18px !important;
}

/* ── Sidebar modules (HikaShop) ───────────────────────── */
.sidebar .hikashop_module, .sidebar .moduletable { color: var(--clr-text-light); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hikashop_product_page .hk-row-fluid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .component-area .hikashop_products > .hk-row-fluid,
  .component-area .hikashop_subcategories > .hk-row-fluid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .component-area .hikashop_product_name { padding: 12px 12px 4px; font-size: 14px; }
  .component-area .hikashop_product_price_full { padding: 4px 12px 0; }
  .component-area .hikashop_product_price { font-size: 16px !important; }
  .component-area .hikashop_subcontainer > form { padding: 12px; }
  .component-area .hikashop_category_name { padding: 12px; font-size: 15px; }
  .hikabtn, .hikabtn.hikacart { height: 40px; padding: 0 12px !important; font-size: 12px !important; }
  .header-actions .hikashop_cart_module a { padding: 6px 10px; }
  .header-actions .hikashop_small_cart_total_title,
  .header-actions .hikashop_cart_module .hikashop_small_cart_checkout_link span:not(:first-child) { display: none; }
}
@media (max-width: 420px) {
  .component-area .hikashop_products > .hk-row-fluid,
  .component-area .hikashop_subcategories > .hk-row-fluid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ── Patch 1 ─────────────────────────────────────────────── */
.falmec-breadcrumb-bar .breadcrumb li.mod-breadcrumbs__here { display: none !important; }
.falmec-breadcrumb-bar ol.breadcrumb { padding: 0 !important; background: none !important; }
.falmec-breadcrumb-bar .breadcrumb li::after { content: none !important; }
.header-actions .hikashop_cart_module .hikashop_cart_empty_message {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--clr-text-muted); padding: 8px 14px;
  border: 1px solid var(--clr-border); border-radius: 999px; white-space: nowrap;
}
.header-actions .hikashop_cart_module .hikashop_cart_empty_message::before {
  content: ''; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/contain no-repeat;
}
.header-actions .hikashop_cart_module .clear_both { display: none; }
.component-area .hikashop_category_information > h1,
.component-area .hikashop_products_listing_main > h1 { margin-bottom: 28px; }
.component-area .hikashop_listing_img_title { display: contents !important; }

/* ── Product page layout ─────────────────────────────────── */
#hikashop_social, .hikashop_footer, .hikashop_product_url_main { display: none !important; }
.hikashop_product_page .hk-row-fluid > [class*="hkc-"] { grid-column: auto !important; }
@media (min-width: 1025px) {
  .hikashop_product_page { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .hikashop_product_page > * { grid-column: 1 / -1; }
  .hikashop_product_page > .hk-row-fluid { display: contents !important; }
  .hikashop_product_page .hikashop_product_left_part { grid-column: 1 !important; grid-row: 2 / span 2; }
  .hikashop_product_page > .hikashop_product_top_part { grid-column: 2; grid-row: 2; padding-top: 8px; }
  .hikashop_product_page .hikashop_product_right_part { grid-column: 2 !important; grid-row: 3; }
}
@media (max-width: 1024px) {
  .hikashop_product_page, .hikashop_product_page > .hk-row-fluid { display: block !important; }
  .hikashop_product_page .hikashop_product_right_part { margin-top: 24px; }
}
.hikashop_product_page .hikashop_product_top_part h1 { margin-bottom: 8px; }
.hikashop_product_page .hikashop_product_right_part > br { display: none; }
.hikashop_product_page .hikashop_product_right_part {
  background: var(--clr-bg-2); border: 1px solid var(--clr-border); border-radius: 14px; padding: 28px;
}
.hikashop_product_page .hikashop_product_price_main { display: block; margin-bottom: 20px; }
.hikashop_product_page .hikashop_product_price_main .hikashop_product_price_full { padding: 0 !important; }
.hikashop_product_page .hikashop_product_quantity_main { margin: 0 !important; }
.hikashop_product_page .hikashop_product_quantity_main .hikacart { width: 100%; height: 52px; font-size: 14px !important; }
.hikashop_product_page #hikashop_product_image_main {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100% !important;
  background: none; padding: 0;
}
.hikashop_product_page .hikashop_main_image_div {
  width: 100% !important; aspect-ratio: 4 / 3; background: #f4f3f0; border-radius: 14px; padding: 6%;
}
.hikashop_product_page .hikashop_main_image_div > div,
.hikashop_product_page .hikashop_product_main_image,
.hikashop_product_page .hikashop_product_main_image_subdiv { width: 100% !important; height: 100% !important; display: flex !important; align-items: center; justify-content: center; background: none !important; padding: 0 !important; margin: 0 !important; }
.hikashop_product_page .hikashop_main_image_div img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; }
.hikashop_product_page .hikashop_small_image_div { display: flex !important; gap: 10px; flex-wrap: wrap; width: 100% !important; position: static !important; }
.hikashop_product_page .hikashop_small_image_div a { display: block; width: 76px; height: 76px; padding: 0 !important; border: 1px solid var(--clr-border) !important; border-radius: 10px; overflow: hidden; background: #f4f3f0; }
.hikashop_product_page .hikashop_small_image_div a.hikashop_active_thumbnail { border-color: var(--clr-gold) !important; }
.hikashop_product_page .hikashop_small_image_div img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 6px; mix-blend-mode: multiply; background: none; border-radius: 0; }
.hikashop_product_page .hikashop_product_bottom_part { margin-top: 56px; }
.hikashop_product_page .hikashop_product_description_main { max-width: 860px; margin-top: 0; font-size: 16px; color: var(--clr-text-light); }
.hikashop_product_page .hikashop_product_description_main p { margin-bottom: 14px; }
.hikashop_product_page .hikashop_product_description_main ul { padding-left: 20px; margin-bottom: 14px; }
.hikashop_product_page .hikashop_product_description_main li { list-style: disc; margin-bottom: 4px; }
.hikashop_product_page .hikashop_product_description_main::before {
  content: 'Описание'; display: block; font-size: 22px; font-weight: 600; color: var(--clr-white); margin-bottom: 20px;
}

/* ── Home page ───────────────────────────────────────────── */
.fx-home .falmec-breadcrumb-bar,
.fx-home .falmec-main { display: none; }
.falmec-banner .banner-inner, .falmec-banner > div { min-height: 0; display: block; }
.fx-eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--clr-gold); margin-bottom: 20px; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.fx-btn--gold { background: var(--clr-gold); color: #111; border: 1px solid var(--clr-gold); }
.fx-btn--gold:hover { background: var(--clr-gold-light); border-color: var(--clr-gold-light); color: #111; }
.fx-btn--ghost { color: var(--clr-white); border: 1px solid var(--clr-border-2); }
.fx-btn--ghost:hover { border-color: var(--clr-gold); color: var(--clr-gold); }

.fx-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--clr-border);
  background: radial-gradient(60% 80% at 85% 40%, rgba(179,32,42,.10) 0%, rgba(13,13,13,0) 70%), var(--clr-bg); }
.fx-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.fx-hero__title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--clr-white); margin: 0 0 24px; }
.fx-hero__title span { color: var(--clr-gold); }
.fx-hero__lead { font-size: 18px; line-height: 1.6; color: var(--clr-text-muted); max-width: 520px; margin: 0 0 36px; }
.fx-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fx-hero__media { position: relative; aspect-ratio: 5 / 4; border-radius: 20px; background: #f4f3f0; display: flex; align-items: center; justify-content: center; padding: 8%; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.fx-hero__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fx-hero__media figcaption { position: absolute; left: 20px; bottom: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6b6558; }

.fx-section { padding: 88px 0; }
.fx-section + .fx-section { border-top: 1px solid var(--clr-border); }
.fx-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.fx-section__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; color: var(--clr-white); letter-spacing: -.01em; margin: 0; }
.fx-link { color: var(--clr-gold); font-size: 14px; letter-spacing: .06em; white-space: nowrap; }
.fx-link:hover { color: var(--clr-gold-light); }

.fx-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.fx-cat { grid-column: span 2; position: relative; display: flex; flex-direction: column; background: var(--clr-bg-2); border: 1px solid var(--clr-border); border-radius: 16px; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.fx-cat:nth-child(-n+2) { grid-column: span 3; }
.fx-cat:hover { border-color: rgba(179,32,42,.55); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.55); }
.fx-cat__img { aspect-ratio: 16 / 10; background: #f4f3f0; display: flex; align-items: center; justify-content: center; padding: 7%; }
.fx-cat:nth-child(-n+2) .fx-cat__img { aspect-ratio: 16 / 9; }
.fx-cat__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s ease; }
.fx-cat:hover .fx-cat__img img { transform: scale(1.04); }
.fx-cat__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.fx-cat__name { font-size: 18px; font-weight: 500; color: var(--clr-white); }
.fx-cat__hint { display: block; font-size: 13px; color: var(--clr-text-muted); margin-top: 2px; }
.fx-cat__arrow { color: var(--clr-gold); font-size: 20px; transition: transform .25s; }
.fx-cat:hover .fx-cat__arrow { transform: translateX(4px); }

.fx-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fx-feature { padding: 28px; border: 1px solid var(--clr-border); border-radius: 16px; background: var(--clr-bg-2); }
.fx-feature__num { font-size: 13px; color: var(--clr-gold); letter-spacing: .2em; margin-bottom: 18px; }
.fx-feature__title { font-size: 18px; font-weight: 600; color: var(--clr-white); margin-bottom: 8px; }
.fx-feature__text { font-size: 15px; color: var(--clr-text-muted); line-height: 1.6; margin: 0; }

@media (max-width: 1024px) {
  .fx-hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .fx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-cat, .fx-cat:nth-child(-n+2) { grid-column: auto; }
  .fx-cat:first-child { grid-column: 1 / -1; }
  .fx-features { grid-template-columns: 1fr; }
  .fx-section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .fx-cats { grid-template-columns: 1fr; }
  .fx-hero__lead { font-size: 16px; }
  .fx-btn { height: 48px; padding: 0 20px; }
}

/* ── Patch 2 ─────────────────────────────────────────────── */
.fx-cat__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; }
.fx-cat__name { grid-column: 1; grid-row: 1; }
.fx-cat__hint { grid-column: 1; grid-row: 2; margin: 0; }
.fx-cat__arrow { grid-column: 2; grid-row: 1 / span 2; }
.fx-cat__body > span:not([class]) { display: contents; }

/* ── Patch 3: category tile images (from product photos) ── */
.component-area .hikashop_category_image:has(a[href$="/406-vytyazhki"]),
.component-area .hikashop_category_image:has(a[href$="/407-varochnye-paneli"]),
.component-area .hikashop_category_image:has(a[href$="/408-kuhonnye-moyki"]),
.component-area .hikashop_category_image:has(a[href$="/409-kuhonnye-smesiteli"]),
.component-area .hikashop_category_image:has(a[href$="/410-aksessuary"]) {
  background-color: #f4f3f0 !important; background-repeat: no-repeat !important;
  background-position: center !important; background-size: auto 72% !important;
  background-blend-mode: multiply;
}
.component-area .hikashop_category_image:has(a[href$="/406-vytyazhki"]) { background-image: url(/images/com_hikashop/upload/falmec-lumen-steel-90-CLUN90-E0P1-NEUI491F_1.jpg) !important; background-size: 78% auto !important; }
.component-area .hikashop_category_image:has(a[href$="/407-varochnye-paneli"]) { background-image: url(/images/com_hikashop/upload/quantum-pro-CUZQ90-03P8-ZZZN460F_1.jpg) !important; background-size: cover !important; }
.component-area .hikashop_category_image:has(a[href$="/408-kuhonnye-moyki"]) { background-image: url(/images/com_hikashop/upload/falmec-como-50-cm-inox-undermount-SCO5000U-00-SSF_1.jpeg) !important; }
.component-area .hikashop_category_image:has(a[href$="/409-kuhonnye-smesiteli"]) { background-image: url(/images/com_hikashop/upload/falmec-pure-steel-round-MPSR-00-SSF_1.png) !important; }
.component-area .hikashop_category_image:has(a[href$="/410-aksessuary"]) { background-image: url(/images/com_hikashop/upload/dispenser-dlya-zhidkogo-myla-stal-KACL-985-IF_1.png) !important; }
.component-area .hikashop_category_image:has(a[href$="/406-vytyazhki"])::after,
.component-area .hikashop_category_image:has(a[href$="/407-varochnye-paneli"])::after,
.component-area .hikashop_category_image:has(a[href$="/408-kuhonnye-moyki"])::after,
.component-area .hikashop_category_image:has(a[href$="/409-kuhonnye-smesiteli"])::after,
.component-area .hikashop_category_image:has(a[href$="/410-aksessuary"])::after { content: none !important; }
.component-area .hikashop_category .hikashop_category_image { aspect-ratio: 16 / 10; }
.fx-accent { color: var(--clr-gold); }

/* ── Patch 4: photos with own background fill the tile ───── */
.component-area .hikashop_category_image:has(a[href$="/408-kuhonnye-moyki"]),
.component-area .hikashop_category_image:has(a[href$="/409-kuhonnye-smesiteli"]),
.component-area .hikashop_category_image:has(a[href$="/410-aksessuary"]) { background-size: cover !important; background-blend-mode: normal; }
.fx-cat:nth-child(n+2) .fx-cat__img { padding: 0; }
.fx-cat:nth-child(n+2) .fx-cat__img img { object-fit: cover; mix-blend-mode: normal; }

/* ── Patch 5: product page sizing ────────────────────────── */
.hikashop_product_page .hikashop_product_left_part,
.hikashop_product_page .hikashop_product_right_part { display: block !important; width: 100% !important; box-sizing: border-box; }
.hikashop_product_page .hikashop_main_image_div { aspect-ratio: auto; padding: 4%; }
.hikashop_product_page #hikashop_image_main_thumb_div { height: auto !important; width: 100% !important; }
.hikashop_product_page .hikashop_main_image_div img { margin: 0 auto !important; max-height: 560px !important; }
@media (min-width: 1025px) {
  .hikashop_product_page .hikashop_product_right_part { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ── Patch 6 ─────────────────────────────────────────────── */
.falmec-header > .falmec-container { height: 100%; }
@media (min-width: 1025px) {
  .hikashop_product_page { grid-template-rows: auto auto 1fr; }
}

/* ── Patch 7 ─────────────────────────────────────────────── */
.fx-cat__img { overflow: hidden; min-height: 0; position: relative; }
.fx-cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; }
.fx-cat:first-child .fx-cat__img img { padding: 6%; }
.hikashop_product_page > .hikashop_product_top_part { padding-bottom: 20px; }

/* ── Patch 8 ─────────────────────────────────────────────── */
.component-area .hikashop_subcontainer .hikacart,
.component-area .hikashop_subcontainer .hikashop_product_quantity_main,
.component-area .hikashop_subcontainer > .hikashop_listing_img_title > a.hikabtn { order: 4; margin: 16px 20px 20px !important; width: calc(100% - 40px) !important; }
.component-area .hikashop_subcontainer form .hikacart { margin: 0 !important; width: 100% !important; }
.fx-cat:nth-child(n+3) .fx-cat__img { aspect-ratio: 4 / 3; }
@media (max-width: 768px) {
  .component-area .hikashop_subcontainer .hikacart { margin: 12px !important; width: calc(100% - 24px) !important; }
}

/* ── Patch 9: mobile header ──────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 10px; }
}
@media (max-width: 560px) {
  .header-actions .hikashop_cart_module .hikashop_cart_empty_message,
  .header-actions .hikashop_cart_module a { font-size: 0 !important; padding: 10px !important; gap: 0; }
  .header-actions .hikashop_cart_module a * { font-size: 0 !important; }
  .logo-text { font-size: 1.35rem; }
}

/* ── Patch 10: mobile menu ───────────────────────────────── */
@media (max-width: 768px) {
  .header-nav .mod-menu, .header-nav ul.nav { flex-direction: column; align-items: stretch; height: auto; padding: 8px var(--container-pad) 16px; }
  .header-nav .mod-menu > li, .header-nav ul.nav > li { height: auto; display: block; }
  .header-nav .mod-menu > li > a, .header-nav ul.nav > li > a {
    height: auto; padding: 16px 0; font-size: 17px; letter-spacing: 0; text-transform: none;
    border-bottom: 1px solid var(--clr-border); color: var(--clr-text);
  }
  .header-nav .mod-menu > li:last-child > a { border-bottom: 0; }
  .header-nav .mod-menu > li.current > a, .header-nav .mod-menu > li.active > a { color: var(--clr-gold); }
  .header-nav.open { box-shadow: 0 20px 40px rgba(0,0,0,.6); }
}

/* ── Patch 12: softer grey photo stage (matches sink/mixer photos #d6d6d8) ── */
:root { --img-stage: #d6d6d8; }
.component-area .hikashop_product_image,
.component-area .hikashop_category_image,
.component-area .hikashop_category_image:has(a) { background-color: var(--img-stage) !important; }
.hikashop_product_page .hikashop_main_image_div,
.hikashop_product_page .hikashop_small_image_div a,
.fx-hero__media,
.fx-cat__img { background-color: var(--img-stage) !important; }
.fx-hero__media { box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.fx-hero__media figcaption { color: #5b5a57; }
.fx-hero__media::before { background-color: rgba(255,255,255,.7); }

/* ── Patch 13: add-to-cart notification (notify.js metro) ── */
.notifyjs-corner { top: calc(var(--header-h) + 14px) !important; right: 20px !important; margin: 0 !important; z-index: 1100 !important; }
.notifyjs-corner .notifyjs-wrapper { margin: 0 0 10px !important; }
.notifyjs-corner .notifyjs-container { min-width: 0 !important; }
.notifyjs-metro-base, .notifyjs-metro-lite-base {
  position: relative !important; display: flex !important; align-items: center; gap: 14px;
  width: 360px; max-width: calc(100vw - 40px); min-height: 0 !important; box-sizing: border-box;
  padding: 14px 18px 14px 14px !important; margin: 0 !important;
  background: rgba(24,24,24,.97) !important; color: var(--clr-text) !important;
  border: 1px solid var(--clr-border-2) !important; border-radius: 14px !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(179,32,42,.08) !important;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; font-family: var(--font-primary) !important; cursor: pointer;
  animation: fx-toast-in .28s cubic-bezier(.2,.8,.2,1);
}
.notifyjs-metro-base::before, .notifyjs-metro-lite-base::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--it-tricolore); }
.notifyjs-metro-base .image {
  position: static !important; transform: none !important; display: flex !important; flex: none;
  width: 56px !important; height: 56px !important; border-radius: 10px; overflow: hidden;
  background: var(--img-stage, #d6d6d8); align-items: center; justify-content: center;
}
.notifyjs-metro-base .image img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.notifyjs-metro-base .image i { color: var(--clr-gold); font-size: 26px !important; }
.notifyjs-metro-base .text-wrapper, .notifyjs-metro-lite-base .text-wrapper { margin: 0 !important; display: block !important; min-width: 0; font-family: inherit !important; }
.notifyjs-metro-base .title, .notifyjs-metro-lite-base .title {
  font-size: 14px !important; font-weight: 600 !important; color: var(--clr-white) !important; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notifyjs-metro-base .text, .notifyjs-metro-lite-base .text {
  display: flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 13px !important; color: var(--clr-text-muted) !important; line-height: 1.4;
}
.notifyjs-metro-info .text::before, .notifyjs-metro-success .text::before,
.notifyjs-metro-lite-info .text::before, .notifyjs-metro-lite-success .text::before {
  content: '✓'; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--it-green, #0f8a4a); color: #fff; font-size: 10px; font-weight: 700;
}
.notifyjs-metro-warning, .notifyjs-metro-error, .notifyjs-metro-lite-warning, .notifyjs-metro-lite-error { border-color: rgba(200,50,60,.55) !important; }
.notifyjs-metro-warning .title, .notifyjs-metro-error .title { color: #f0a3a8 !important; }
.notifyjs-arrow { display: none !important; }
@keyframes fx-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .notifyjs-corner { left: 12px !important; right: 12px !important; }
  .notifyjs-metro-base, .notifyjs-metro-lite-base { width: 100%; max-width: none; }
}

/* ── Patch 14: 'darken' instead of 'multiply' — white bg → stage grey, grey-bg photos stay unchanged ── */
.component-area .hikashop_product_image img,
.component-area .hikashop_category_image img,
.hikashop_product_page .hikashop_main_image_div img,
.hikashop_product_page #hikashop_main_image,
.hikashop_product_page .hikashop_small_image_div img,
.fx-hero__media img, .fx-cat__img img,
.notifyjs-metro-base .image img { mix-blend-mode: darken !important; }

/* ── Patch 15: lighter product cards + Italian-green cart button ── */
:root { --card-bg: #222222; --card-border: #333333; --it-green-dark: #0b6e3a; }
.component-area .hikashop_subcontainer,
.component-area .hikashop_subcontainer.thumbnail { background: var(--card-bg) !important; border-color: var(--card-border) !important; }
.hikashop_product_page .hikashop_product_right_part { background: var(--card-bg); border-color: var(--card-border); }
.fx-cat { background: var(--card-bg); border-color: var(--card-border); }

.hikabtn, a.hikabtn, button.hikabtn, .hikabtn.hikacart, .hikabtn-primary, .hikabtn-success {
  position: relative; overflow: hidden;
  background: var(--it-green) !important; border-color: var(--it-green) !important; color: #fff !important;
}
.hikabtn::after, .hikabtn.hikacart::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--it-tricolore); opacity: .9;
}
.hikabtn:hover, .hikabtn.hikacart:hover { background: var(--it-green-dark) !important; border-color: var(--it-green-dark) !important; color: #fff !important; }
.hikabtn:focus-visible { outline: 2px solid var(--it-white); outline-offset: 2px; }

/* ── Patch 16: no Italian symbols; red buttons on black ─── */
:root { --btn-red: #b3202a; --btn-red-hover: #d02c37; --btn-red-press: #8f1820; }
/* stats strip (neutral) */
.fx-stats { border-bottom: 1px solid var(--clr-border); background: var(--clr-bg-2); }
.fx-stats__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-stat { padding: 32px 28px; border-left: 1px solid var(--clr-border); }
.fx-stat:first-child { border-left: 0; padding-left: 0; }
.fx-stat__value { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; color: var(--clr-white); letter-spacing: -.01em; line-height: 1.1; }
.fx-stat__label { display: block; margin-top: 6px; font-size: 14px; color: var(--clr-text-muted); }
.fx-stat__it, .fx-feature__it { display: none; }
@media (max-width: 768px) {
  .fx-stats__inner { grid-template-columns: 1fr; }
  .fx-stat { border-left: 0; border-top: 1px solid var(--clr-border); padding: 20px 0; }
  .fx-stat:first-child { border-top: 0; }
}
/* buttons: red */
.hikabtn, a.hikabtn, button.hikabtn, .hikabtn.hikacart, .hikabtn-primary, .hikabtn-success,
.fx-btn--gold {
  background: var(--btn-red) !important; border-color: var(--btn-red) !important; color: #fff !important;
}
.hikabtn:hover, .hikabtn.hikacart:hover, .fx-btn--gold:hover {
  background: var(--btn-red-hover) !important; border-color: var(--btn-red-hover) !important; color: #fff !important;
  box-shadow: 0 8px 24px rgba(179,32,42,.35) !important;
}
.hikabtn:active, .fx-btn--gold:active { background: var(--btn-red-press) !important; border-color: var(--btn-red-press) !important; }
.hikabtn::after, .hikabtn.hikacart::after { content: none !important; }
.hikabtn:focus-visible, .fx-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* toast: no tricolore, neutral check */
.notifyjs-metro-base::before, .notifyjs-metro-lite-base::before { content: none !important; }
.notifyjs-metro-base, .notifyjs-metro-lite-base { border-left: 3px solid var(--btn-red) !important; }
.notifyjs-metro-info .text::before, .notifyjs-metro-success .text::before,
.notifyjs-metro-lite-info .text::before, .notifyjs-metro-lite-success .text::before { background: var(--btn-red); }

/* ── Patch 17: brand line above price on product page (neutral, no flag) ── */
.hikashop_product_page .hikashop_product_right_part::before {
  content: 'Итальянский бренд Falmec'; display: block; margin-bottom: 16px; padding-left: 10px;
  border-left: 3px solid var(--btn-red); background: none;
  font-size: 12px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--clr-text-muted);
}
.hikashop_product_page #hikashop_product_right_part { padding: 24px 28px 28px !important; }
.hikashop_product_page .hikashop_product_price_main { margin-bottom: 20px !important; }

/* ── Patch 18: lighter photo stage (+~4 tones). Grey-bg photos (#d6d6d8) are brightened 7% so they still merge. ── */
:root { --img-stage: #e5e5e7; }
.component-area .hikashop_product_image img,
.component-area .hikashop_category_image img,
.hikashop_product_page .hikashop_main_image_div img,
.hikashop_product_page #hikashop_main_image,
.hikashop_product_page .hikashop_small_image_div img,
.fx-hero__media img, .fx-cat__img img,
.notifyjs-metro-base .image img { filter: brightness(1.07); }
.component-area .hikashop_category_image:has(a[href$="/408-kuhonnye-moyki"]),
.component-area .hikashop_category_image:has(a[href$="/409-kuhonnye-smesiteli"]) { background-blend-mode: normal; }

/* ── Patch 19: white photo stage (user request) ── */
:root { --img-stage: #ffffff; }
.component-area .hikashop_product_image img,
.component-area .hikashop_category_image img,
.hikashop_product_page .hikashop_main_image_div img,
.hikashop_product_page #hikashop_main_image,
.hikashop_product_page .hikashop_small_image_div img,
.fx-hero__media img, .fx-cat__img img,
.notifyjs-metro-base .image img { filter: none; }

/* ── Patch 20: checkout page, alerts, header mini-cart ───── */
/* header mini-cart (non-empty): one pill with total, no extra button */
.header-actions .hikashop_cart_proceed_to_checkout { display: none !important; }
.header-actions .hikashop_small_cart_checkout_link { position: relative; border-color: rgba(179,32,42,.6) !important; color: var(--clr-white) !important; }
.header-actions .hikashop_small_cart_checkout_link::after {
  content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--btn-red);
}
.header-actions .hikashop_small_cart_total_title { color: inherit !important; }

/* Joomla system messages (dark) */
joomla-alert, .alert {
  background: var(--card-bg, #222) !important; color: var(--clr-text) !important;
  border: 1px solid var(--clr-border-2) !important; border-left: 3px solid var(--btn-red) !important;
  border-radius: 12px !important; box-shadow: none !important;
}
joomla-alert[type="success"], .alert-success { border-left-color: var(--clr-success) !important; }
joomla-alert .alert-heading, joomla-alert .alert-heading * { color: var(--clr-text-muted) !important; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
joomla-alert .joomla-alert--close, joomla-alert button { color: var(--clr-text-muted) !important; background: none !important; }

/* ── Checkout layout: single centered column, cart first ── */
.hikashop_checkout_page { display: flex !important; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; color: var(--clr-text-light); }
.hikashop_checkout_page::before {
  content: 'Оформление заказа'; display: block; order: -10;
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; color: var(--clr-white); letter-spacing: -.01em; line-height: 1.15;
}
.hikashop_checkout_page > .hikashop_checkout_cart { order: -5; }
.hikashop_checkout_page > .hikashop_checkout_coupon { order: -4; }
.hikashop_checkout_page > .hikashop_checkout_status { display: none !important; }
.hikashop_checkout_page > .hikashop_checkout_buttons { order: 50; }

/* section cards */
.hikashop_checkout_page > .hikashop_checkout_cart,
.hikashop_checkout_page > .hikashop_checkout_coupon,
.hikashop_checkout_page > .hikashop_checkout_address,
.hikashop_checkout_page > .hikashop_checkout_shipping,
.hikashop_checkout_page > .hikashop_checkout_payment,
.hikashop_checkout_page > .hikashop_checkout_fields,
.hikashop_checkout_page > .hikashop_checkout_terms,
.hikashop_checkout_page #hikashop_checkout_login_form,
.hikashop_checkout_page #hikashop_checkout_registration {
  background: var(--card-bg, #222); border: 1px solid var(--card-border, #333); border-radius: 14px; padding: 24px 26px; margin: 0 !important;
}
.hikashop_checkout_page > .hikashop_checkout_cart::before { content: 'Ваш заказ'; display: block; font-size: 20px; font-weight: 600; color: var(--clr-white); margin-bottom: 16px; }
.hikashop_checkout_page legend,
.hikashop_checkout_page h2,
.hikashop_checkout_page .hika_registration_address legend {
  display: block; width: 100%; float: none; padding: 0; margin: 0 0 16px; border: 0;
  font-size: 20px !important; font-weight: 600 !important; color: var(--clr-white) !important; line-height: 1.3;
}
.hikashop_checkout_page .hika_registration_address { grid-column: 1 / -1; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--clr-border); }
.hikashop_checkout_page .hikashop_checkout_login > h1 {
  font-size: 15px !important; font-weight: 400 !important; color: var(--clr-text-muted) !important; line-height: 1.5; margin: 0 0 16px !important;
}
.hikashop_checkout_page .hikashop_checkout_login > h1::after { content: none !important; }

/* login + registration side by side */
.hikashop_checkout_page .hikashop_checkout_login > .hk-container-fluid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 20px; align-items: start; margin: 0 !important; }
.hikashop_checkout_page .hikashop_checkout_login > .hk-container-fluid::before,
.hikashop_checkout_page .hikashop_checkout_login > .hk-container-fluid::after { content: none !important; display: none !important; }
.hikashop_checkout_page .hikashop_checkout_login > .hk-container-fluid > [class*="hkc-"] { width: auto !important; max-width: none !important; float: none !important; padding: 0 !important; margin: 0 !important; }

/* form lines: label above input */
.hikashop_checkout_page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hikashop_checkout_page .hkform-group { display: block !important; margin: 0 0 16px !important; padding: 0 !important; }
.hikashop_checkout_page .hkform-group > [class*="hkc-sm-"] { width: 100% !important; max-width: none !important; float: none !important; padding: 0 !important; margin: 0 !important; text-align: left !important; }
.hikashop_checkout_page .hkform-group > .hkcontrol-label:empty { display: none !important; }
.hikashop_checkout_page .hkcontrol-label { display: block; margin: 0 0 6px !important; font-size: 13px !important; font-weight: 500; color: var(--clr-text-light) !important; }
.hikashop_checkout_page .hikashop_field_required_label { color: var(--btn-red); margin-left: 2px; }
.hikashop_checkout_page input[type="text"], .hikashop_checkout_page input[type="email"], .hikashop_checkout_page input[type="password"],
.hikashop_checkout_page input[type="tel"], .hikashop_checkout_page select, .hikashop_checkout_page textarea {
  height: 46px; padding: 0 14px !important; background: #181818 !important; color: var(--clr-white) !important;
  border: 1px solid var(--clr-border-2) !important; border-radius: 10px !important; font-size: 15px !important; box-shadow: none !important;
}
.hikashop_checkout_page textarea { height: auto; padding: 12px 14px !important; }
.hikashop_checkout_page input:focus, .hikashop_checkout_page select:focus, .hikashop_checkout_page textarea:focus {
  border-color: var(--btn-red) !important; box-shadow: 0 0 0 3px rgba(179,32,42,.22) !important; outline: none;
}
.hikashop_checkout_page .input-group { display: flex !important; flex-wrap: nowrap; }
.hikashop_checkout_page .input-group > .form-control { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.hikashop_checkout_page .input-password-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0 !important;
  background: #181818 !important; color: var(--clr-text-muted) !important; border: 1px solid var(--clr-border-2) !important; border-left: 0 !important;
  border-radius: 0 10px 10px 0 !important; font-size: 0 !important; letter-spacing: 0; text-transform: none;
}
.hikashop_checkout_page .input-password-toggle .icon-eye, .hikashop_checkout_page .input-password-toggle [class*="icon-"] { font-size: 16px !important; }
.hikashop_checkout_page .input-password-toggle:hover { color: var(--clr-white) !important; }
.hikashop_checkout_page .small.text-muted, .hikashop_checkout_page [id$="-rules"] { font-size: 12px; color: var(--clr-text-muted) !important; margin-bottom: 6px; }
.hikashop_checkout_page meter { width: 100%; height: 4px; margin-top: 6px; }
.hikashop_checkout_page .hkcheckbox label, .hikashop_checkout_page .hikashop_login_remember_line label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--clr-text-light); }
.hikashop_checkout_page input[type="checkbox"], .hikashop_checkout_page input[type="radio"] { accent-color: var(--btn-red); width: 18px; height: 18px; }
.hikashop_checkout_page .plg_system_webauthn_login_button,
.hikashop_checkout_page .form-login__submit { display: none !important; }
.hikashop_checkout_page .hikashop_login_forgot_password_line,
.hikashop_checkout_page .hikashop_login_forgot_username_line { margin-bottom: 6px !important; font-size: 13px; }
.hikashop_checkout_page .hikashop_login_forgot_password_line a,
.hikashop_checkout_page .hikashop_login_forgot_username_line a { color: var(--clr-text-muted); }
.hikashop_checkout_page .hikashop_login_forgot_password_line a:hover,
.hikashop_checkout_page .hikashop_login_forgot_username_line a:hover { color: var(--clr-white); }
.hikashop_checkout_page .hikashop_checkout_login .hikabtn { width: 100%; }
.hikashop_checkout_page .hikashop_registration_required_info_line { font-size: 12px; color: var(--clr-text-muted); }
.hikashop_checkout_page .hikashop_field_error_msg { color: #ff8a8f; font-size: 12px; margin-top: 4px; }

/* registration + address fields in two columns */
.hikashop_checkout_page #hikashop_checkout_registration fieldset,
.hikashop_checkout_page .hikashop_checkout_address fieldset { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.hikashop_checkout_page #hikashop_checkout_registration fieldset > *,
.hikashop_checkout_page .hikashop_checkout_address fieldset > * { grid-column: 1 / -1; }
.hikashop_checkout_page [class*="hikashop_address_address_title"], .hikashop_checkout_page [class*="hikashop_address_address_firstname"],
.hikashop_checkout_page [class*="hikashop_address_address_lastname"], .hikashop_checkout_page [class*="hikashop_address_address_company"],
.hikashop_checkout_page [class*="hikashop_address_address_post_code"], .hikashop_checkout_page [class*="hikashop_address_address_city"],
.hikashop_checkout_page [class*="hikashop_address_address_telephone"], .hikashop_checkout_page [class*="hikashop_address_address_country"],
.hikashop_checkout_page [class*="hikashop_address_address_state"],
.hikashop_checkout_page .hikashop_registration_password_line, .hikashop_checkout_page .hikashop_registration_password2_line { grid-column: auto !important; }

/* cart */
.hikashop_checkout_cart .table, .hikashop_checkout_cart table {
  --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-hover-bg: rgba(255,255,255,.03); --bs-table-color: var(--clr-text);
  --bs-table-striped-color: var(--clr-text); --bs-table-hover-color: var(--clr-text);
  width: 100%; margin: 0 !important; border-collapse: collapse; background: transparent !important; color: var(--clr-text);
}
.hikashop_checkout_cart th, .hikashop_checkout_cart td {
  background: transparent !important; box-shadow: none !important; color: inherit; border: 0 !important;
  border-bottom: 1px solid var(--clr-border) !important; padding: 14px 10px !important; vertical-align: middle !important;
}
.hikashop_checkout_cart th { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--clr-text-muted) !important; text-align: left; }
.hikashop_checkout_cart .hikashop_cart_product_image_title { font-size: 0 !important; }
.hikashop_checkout_cart .hikashop_cart_product_image_thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--img-stage, #fff); display: flex; align-items: center; justify-content: center; }
.hikashop_checkout_cart .hikashop_cart_product_image_thumb img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 6px; }
.hikashop_checkout_cart .hikashop_cart_product_name { margin: 0; font-size: 15px; font-weight: 500; }
.hikashop_checkout_cart .hikashop_cart_product_name a { color: var(--clr-white); }
.hikashop_checkout_cart .hikashop_cart_product_name a:hover { color: var(--clr-gold-light); }
.hikashop_checkout_cart .hikashop_product_price { color: var(--clr-text) !important; font-size: 15px !important; font-weight: 500 !important; white-space: nowrap; }
.hikashop_checkout_cart .hikashop_cart_product_total_value .hikashop_product_price { color: var(--clr-white) !important; font-weight: 600 !important; }
.hikashop_checkout_cart .hikashop_product_price_per_unit { display: none; }
.hikashop_checkout_cart .hikashop_cart_product_quantity_value > * { display: inline-flex !important; vertical-align: middle; }
.hikashop_checkout_cart .hikashop_product_quantity_input_div_default_main { display: inline-flex !important; align-items: center; gap: 0; }
.hikashop_checkout_cart .hikashop_product_quantity_div { display: inline-flex !important; }
.hikashop_checkout_cart .hikashop_product_quantity_input_div_default { display: inline-flex !important; order: 2; }
.hikashop_checkout_cart .hikashop_product_quantity_change_div_default { display: contents !important; }
.hikashop_checkout_cart .hikashop_product_quantity_change_div_plus_default { order: 3; }
.hikashop_checkout_cart .hikashop_product_quantity_change_div_minus_default { order: 1; }
.hikashop_checkout_cart .hikashop_product_quantity_field { width: 48px !important; height: 38px !important; padding: 0 !important; text-align: center; border-radius: 0 !important; background: #181818 !important; color: #fff !important; border: 1px solid var(--clr-border-2) !important; }
.hikashop_checkout_cart .hikashop_product_quantity_field_change {
  width: 34px !important; height: 38px !important; padding: 0 !important; margin: 0 !important; font-size: 16px !important; letter-spacing: 0;
  background: #181818 !important; color: var(--clr-text) !important; border: 1px solid var(--clr-border-2) !important; box-shadow: none !important;
}
.hikashop_checkout_cart .hikashop_product_quantity_field_change::after { content: none !important; }
.hikashop_checkout_cart .hikashop_product_quantity_change_div_minus_default .hikashop_product_quantity_field_change { border-radius: 8px 0 0 8px !important; border-right: 0 !important; }
.hikashop_checkout_cart .hikashop_product_quantity_change_div_plus_default .hikashop_product_quantity_field_change { border-radius: 0 8px 8px 0 !important; border-left: 0 !important; }
.hikashop_checkout_cart .hikashop_product_quantity_field_change:hover { background: #262626 !important; color: #fff !important; }
.hikashop_checkout_cart .hikashop_cart_product_quantity_refresh { display: none !important; }
.hikashop_checkout_cart .hikashop_cart_product_quantity_delete { margin-left: 10px; }
.hikashop_checkout_cart .hikashop_cart_product_quantity_delete a { color: var(--clr-text-muted); opacity: .8; }
.hikashop_checkout_cart .hikashop_cart_product_quantity_delete a:hover { color: var(--btn-red-hover); opacity: 1; }
.hikashop_checkout_cart .hikashop_cart_product_quantity_delete img { filter: invert(1) brightness(.7); }
.hikashop_checkout_cart tr:last-child td, .hikashop_checkout_cart .hikashop_cart_total_row td { border-bottom: 0 !important; }
.hikashop_checkout_cart .hikashop_cart_total_row td, .hikashop_checkout_cart tr[class*="total"] td { padding-top: 18px !important; }
.hikashop_checkout_cart .hikashop_cart_total_title { font-size: 14px !important; color: var(--clr-text-muted) !important; text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.hikashop_checkout_cart .hikashop_checkout_cart_final_total { font-size: 22px; font-weight: 600; color: var(--clr-white); white-space: nowrap; }

/* coupon */
.hikashop_checkout_coupon .input-group { max-width: 460px; }
.hikashop_checkout_coupon .hikashop_checkout_coupon_field { border-radius: 10px 0 0 10px !important; }
.hikashop_checkout_coupon .hikabtn_checkout_coupon_add, .hikashop_checkout_coupon button {
  height: 46px; padding: 0 20px; border-radius: 0 10px 10px 0 !important; background: transparent !important; color: var(--clr-white) !important;
  border: 1px solid var(--clr-border-2) !important; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; box-shadow: none !important;
}
.hikashop_checkout_coupon button:hover { border-color: var(--btn-red) !important; color: #fff !important; }
.hikashop_checkout_page > .hikashop_checkout_coupon::before { content: 'Промокод'; display: block; font-size: 14px; font-weight: 500; color: var(--clr-text-light); margin-bottom: 10px; }

/* shipping / payment choices as selectable cards */
.hikashop_checkout_page .hikashop_payment_methods_table, .hikashop_checkout_page .hikashop_shipping_methods_table,
.hikashop_checkout_page .hikashop_payment_methods_table tbody, .hikashop_checkout_page .hikashop_shipping_methods_table tbody { display: block; width: 100%; border: 0 !important; background: none !important; }
.hikashop_checkout_page .hikashop_payment_methods_table tr, .hikashop_checkout_page .hikashop_shipping_methods_table tr { display: block; margin-bottom: 10px; }
.hikashop_checkout_page .hikashop_payment_methods_table td, .hikashop_checkout_page .hikashop_shipping_methods_table td {
  display: grid !important; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: center;
  padding: 16px 18px !important; background: #1a1a1a !important; border: 1px solid var(--clr-border-2) !important; border-radius: 12px; color: var(--clr-text);
}
.hikashop_checkout_page .hikashop_payment_methods_table td:has(input:checked), .hikashop_checkout_page .hikashop_shipping_methods_table td:has(input:checked) { border-color: var(--btn-red) !important; box-shadow: 0 0 0 1px var(--btn-red) inset; }
.hikashop_checkout_page .hikashop_checkout_payment_name, .hikashop_checkout_page .hikashop_checkout_shipping_name { font-size: 16px; font-weight: 600; color: var(--clr-white); }
.hikashop_checkout_page .hikashop_checkout_payment_cost, .hikashop_checkout_page .hikashop_checkout_shipping_cost { grid-column: 3; color: var(--clr-text-light); white-space: nowrap; }
.hikashop_checkout_page .hikashop_checkout_payment_images, .hikashop_checkout_page .hikashop_checkout_shipping_images { display: none !important; }
.hikashop_checkout_page .hikashop_checkout_payment_description, .hikashop_checkout_page .hikashop_checkout_shipping_description {
  grid-column: 2 / -1; margin-top: 4px; font-size: 13px; color: var(--clr-text-muted);
}
.hikashop_checkout_page .hikashop_checkout_payment_description p, .hikashop_checkout_page .hikashop_checkout_shipping_description p { margin: 0; }

/* final button */
.hikashop_checkout_page > .hikashop_checkout_buttons { display: flex; justify-content: flex-end; gap: 12px; }
.hikashop_checkout_page > .hikashop_checkout_buttons .buttons_right, .hikashop_checkout_page > .hikashop_checkout_buttons .buttons_left { float: none !important; }
.hikashop_checkout_page .hikabtn_checkout_next { height: 56px !important; min-width: 280px; font-size: 15px !important; }

@media (max-width: 900px) {
  .hikashop_checkout_page .hikashop_checkout_login > .hk-container-fluid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hikashop_checkout_page > .hikashop_checkout_cart, .hikashop_checkout_page > .hikashop_checkout_coupon,
  .hikashop_checkout_page > .hikashop_checkout_address, .hikashop_checkout_page > .hikashop_checkout_shipping,
  .hikashop_checkout_page > .hikashop_checkout_payment, .hikashop_checkout_page > .hikashop_checkout_fields,
  .hikashop_checkout_page #hikashop_checkout_login_form, .hikashop_checkout_page #hikashop_checkout_registration { padding: 18px 16px; }
  .hikashop_checkout_page #hikashop_checkout_registration fieldset, .hikashop_checkout_page .hikashop_checkout_address fieldset { grid-template-columns: 1fr; }
  /* responsive cart rows */
  .hikashop_checkout_cart thead { display: none; }
  .hikashop_checkout_cart table, .hikashop_checkout_cart tbody { display: block; }
  .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] {
    display: grid !important; grid-template-columns: 84px 1fr; column-gap: 14px; row-gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--clr-border);
  }
  .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] > td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] > td::before { display: none !important; content: none !important; }
  .hikashop_checkout_cart .hikashop_cart_product_image_value { grid-row: 1 / span 4; }
  .hikashop_checkout_cart .hikashop_cart_product_price_value { font-size: 13px; color: var(--clr-text-muted); }
  .hikashop_checkout_cart .hikashop_cart_product_price_value .hikashop_product_price { font-size: 13px !important; color: var(--clr-text-muted) !important; }
  .hikashop_checkout_cart .hikashop_cart_total_row { display: flex !important; justify-content: space-between; align-items: center; padding-top: 14px; }
  .hikashop_checkout_cart .hikashop_cart_total_row td { display: block !important; padding: 0 !important; border: 0 !important; }
  .hikashop_checkout_cart .hikashop_cart_total_row td::before { display: none !important; }
  .hikashop_checkout_cart .hikashop_cart_empty_footer { display: none !important; }
  .hikashop_checkout_page .hikabtn_checkout_next { width: 100%; min-width: 0; }
  .hikashop_checkout_page > .hikashop_checkout_buttons .buttons_right { width: 100%; }
}

/* ── Patch 21: checkout fixes ── */
.component-area .hikashop_checkout_cart .hikashop_product_quantity_div.hikashop_product_quantity_input_div_default { display: inline-flex !important; order: 2; }
.component-area .hikashop_checkout_cart .hikashop_product_quantity_div.hikashop_product_quantity_change_div_default { display: contents !important; }
.hikashop_checkout_page .hikashop_checkout_login > .hk-container-fluid > [class*="hkc-"] { grid-column: auto !important; }
@media (max-width: 900px) {
  .hikashop_checkout_page .hikashop_checkout_login > .hk-container-fluid > [class*="hkc-"] { grid-column: 1 / -1 !important; }
}

/* ── Patch 22: hide empty checkout blocks, full-width password lines ── */
.hikashop_checkout_page > div[class^="hikashop_checkout_"]:not(:has(> :not(.hikashop_checkout_loading_elem):not(.hikashop_checkout_loading_spinner))) { display: none !important; }
.hikashop_checkout_page .hikashop_registration_password_line,
.hikashop_checkout_page .hikashop_registration_password2_line { grid-column: 1 / -1 !important; }

/* ── Patch 23: checkout cart mobile polish ── */
.hikashop_checkout_cart tr { border: 0 !important; }
.hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] { box-shadow: inset 0 -1px 0 var(--clr-border); }
.component-area .hikashop_checkout_cart .hikashop_product_quantity_div.hikashop_product_quantity_input_div_default { width: auto !important; flex: none !important; }
@media (max-width: 768px) {
  .hikashop_checkout_cart .hikashop_cart_total_row .hikashop_cart_total_title { display: block !important; padding: 0 !important; text-align: left; }
  .hikashop_checkout_cart .hikashop_cart_total_row .hikashop_cart_total_value { text-align: right; }
}

/* ── Patch 24 ── */
.hikashop_checkout_page .hikashop_checkout_cart input.hikashop_product_quantity_field { margin: 0 !important; }
@media (max-width: 768px) {
  .hikashop_checkout_page .hikashop_checkout_cart tr.hikashop_cart_total_row td.hikashop_cart_total_title { display: block !important; width: auto !important; }
}

/* ── Patch 25: show total labels on mobile (override hikashop id rules) ── */
@media (max-width: 1024px) {
  .hikashop_checkout_page .hikashop_checkout_cart table tbody tr > td[id^="hikashop_checkout_cart_"][id$="_title"] { display: block !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
  .hikashop_checkout_page .hikashop_checkout_cart table tbody tr:not([id^="hikashop_cart_product_row"]) { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 0 !important; }
  .hikashop_checkout_page .hikashop_checkout_cart table tbody tr:not([id^="hikashop_cart_product_row"]) > td { display: block; padding: 0 !important; margin: 0 !important; border: 0 !important; }
  .hikashop_checkout_page .hikashop_checkout_cart table tbody tr:not([id^="hikashop_cart_product_row"]) > td::before { content: none !important; display: none !important; }
  .hikashop_checkout_page .hikashop_checkout_cart table tbody tr:not([id^="hikashop_cart_product_row"]) > td:empty { display: none !important; }
}

/* ── Patch 26: beat hikashop #id rules for total labels ── */
@media (max-width: 1024px) {
  #hikashop_checkout .hikashop_checkout_cart table tbody td#hikashop_checkout_cart_final_total_title,
  #hikashop_checkout .hikashop_checkout_cart table tbody td#hikashop_checkout_cart_total2_title,
  #hikashop_checkout .hikashop_checkout_cart table tbody td#hikashop_checkout_cart_shipping_title,
  #hikashop_checkout .hikashop_checkout_cart table tbody td#hikashop_checkout_cart_coupon_title,
  #hikashop_checkout .hikashop_checkout_cart table tbody td#hikashop_checkout_cart_tax_title,
  #hikashop_checkout .hikashop_checkout_cart table tbody td#hikashop_checkout_cart_payment_title { display: block !important; }
}

/* ── Patch 27 ── */
.hikashop_checkout_page > .hikashop_checkout_buttons .buttons_left:not(:has(*)) { display: none !important; }
@media (max-width: 768px) {
  .hikashop_checkout_page > .hikashop_checkout_buttons { flex-direction: column; }
  .hikashop_checkout_page > .hikashop_checkout_buttons .buttons_right { width: 100% !important; }
  .hikashop_checkout_page > .hikashop_checkout_buttons .hikabtn_checkout_next { width: 100% !important; }
}

/* ── Patch 28: no gold; Italian flag logo mark; tricolore hover underlines ── */
:root { --it-g: #009246; --it-w: #f1f2f1; --it-r: #ce2b37;
  --flag-h: linear-gradient(90deg, var(--it-g) 0 33.34%, var(--it-w) 33.34% 66.67%, var(--it-r) 66.67% 100%); }

/* logo: text wordmark + round Italian flag instead of the gold dot */
.header-logo .logo-img { display: none !important; }
.header-logo .logo-text { display: inline-flex !important; align-items: center; color: var(--clr-white); }
.logo-text::after {
  width: 14px !important; height: 14px !important; margin-left: 10px !important; border-radius: 50% !important;
  background: var(--flag-h) !important; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 1px 4px rgba(0,0,0,.5);
}
.header-logo:hover .logo-text { color: var(--clr-white); }

/* header menu underline → tricolore */
.header-nav a::after { background: var(--flag-h) !important; height: 3px !important; }
.header-nav a:hover, .header-nav .active > a, .header-nav .current > a { color: var(--clr-white) !important; }

/* text-link hover underline in flag colours */
.falmec-breadcrumb-bar a, .fx-link, .footer-module a,
.hikashop_checkout_page .hikashop_login_forgot_password_line a, .hikashop_checkout_page .hikashop_login_forgot_username_line a,
.hikashop_checkout_cart .hikashop_cart_product_name a,
.component-area .hikashop_product_name a, .hikashop_product_page .hikashop_product_description_main a {
  text-decoration: none !important;
  background-image: var(--flag-h); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: background-size .3s ease, color .2s ease; padding-bottom: 2px;
}
.falmec-breadcrumb-bar a:hover, .fx-link:hover, .footer-module a:hover,
.hikashop_checkout_page .hikashop_login_forgot_password_line a:hover, .hikashop_checkout_page .hikashop_login_forgot_username_line a:hover,
.hikashop_checkout_cart .hikashop_cart_product_name a:hover,
.component-area .hikashop_product_name a:hover, .hikashop_product_page .hikashop_product_description_main a:hover {
  background-size: 100% 2px; color: var(--clr-white) !important;
}
/* product names in cards are line-clamped boxes — underline under the last line only */
.component-area .hikashop_product_name a { display: inline !important; -webkit-line-clamp: unset; }
.component-area .hikashop_product_name { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* remaining accents: gold → neutral/red */
.fx-eyebrow { color: var(--btn-red-hover) !important; }
.fx-accent { color: var(--btn-red-hover) !important; }
.fx-link { color: var(--clr-white) !important; }
.fx-cat__arrow, .component-area .hikashop_category_name a::after { color: var(--btn-red-hover) !important; }
.component-area .hikashop_subcontainer:hover, .fx-cat:hover { border-color: rgba(179,32,42,.6) !important; }
.hikashop_product_page .hikashop_small_image_div a.hikashop_active_thumbnail { border-color: var(--btn-red) !important; }

/* ── Patch 29: bigger, proportional flag mark next to FALMEC ── */
.header-logo .logo-text { line-height: 1; }
.header-logo .logo-text::after {
  width: .82em !important; height: .82em !important; margin-left: .22em !important; flex: none;
  border-radius: 50% !important; transform: translateY(-.02em);
  background: var(--flag-h) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 2px 6px rgba(0,0,0,.55) !important;
}

/* ── Patch 30: a11y helpers, alerts without English heading, empty cart page, no-products box ── */
.visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within), .element-invisible, .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
joomla-alert .alert-heading { display: none !important; }
joomla-alert { padding: 16px 48px 16px 20px !important; margin-bottom: 20px !important; font-size: 15px; }
joomla-alert .joomla-alert--close { position: absolute; top: 10px; right: 12px; font-size: 22px; line-height: 1; border: 0; cursor: pointer; }

/* empty cart landing (/korzina-pusta, body.fx-empty) */
.fx-empty #system-message-container { display: none !important; }
.fx-empty .main-top-row { margin-bottom: 48px; }
.fx-empty-cart {
  position: relative; text-align: center; padding: 56px 24px 48px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(179,32,42,.14) 0%, rgba(34,34,34,0) 60%), var(--card-bg, #222);
  border: 1px solid var(--card-border, #333); border-radius: 18px;
}
.fx-empty-cart::before {
  content: ''; display: block; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: rgba(179,32,42,.14) center / 34px 34px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d02c37' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px rgba(179,32,42,.35);
}
.fx-empty-cart__title { font-size: clamp(26px, 3vw, 36px) !important; font-weight: 600; color: var(--clr-white); margin: 0 0 12px !important; }
.fx-empty-cart__text { max-width: 560px; margin: 0 auto 28px !important; color: var(--clr-text-muted); font-size: 16px; line-height: 1.6; }
.fx-empty-cart__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.fx-empty-cart__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 !important; }
.fx-chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--clr-border-2); color: var(--clr-text-light) !important; font-size: 13px;
  transition: border-color .2s, color .2s, background .2s;
}
.fx-chip:hover { border-color: var(--btn-red); color: #fff !important; background: rgba(179,32,42,.12); }
.fx-empty .component-area h1 { font-size: clamp(22px, 2.4vw, 28px) !important; margin-bottom: 24px !important; }
.fx-empty .hikashop_products_pagination { display: none !important; }

/* HikaShop "no products" box (dark) */
.hk-well, .hika_no_products {
  background: var(--card-bg, #222) !important; color: var(--clr-text-muted) !important; border: 1px dashed var(--clr-border-2) !important;
  border-radius: 14px !important; padding: 28px 24px !important; text-align: center; font-style: normal !important; box-shadow: none !important;
}
.hika_no_products i { display: none; }
@media (max-width: 560px) {
  .fx-empty-cart { padding: 40px 16px 32px; }
  .fx-empty-cart__actions .fx-btn { flex: 1 1 100%; }
}

/* ── Patch 31: show "Нет в наличии" in cards instead of a missing button ── */
.component-area .hikashop_subcontainer .hikashop_product_stock_count.hikashop_product_no_stock {
  display: flex !important; order: 4; align-items: center; justify-content: center;
  height: 44px; margin: 16px 20px 20px; border-radius: 8px;
  border: 1px solid var(--clr-border-2); color: var(--clr-text-muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.hikashop_product_page .hikashop_product_stock_count.hikashop_product_no_stock { display: block !important; color: var(--btn-red-hover); font-weight: 600; margin: 8px 0 16px; }
@media (max-width: 768px) {
  .component-area .hikashop_subcontainer .hikashop_product_stock_count.hikashop_product_no_stock { height: 40px; margin: 12px; font-size: 12px; }
}

/* ── Patch 32: empty-cart page is now an article with {loadmoduleid 110} ── */
.fx-empty .fx-rec-title { font-size: clamp(22px, 2.4vw, 28px) !important; font-weight: 600; color: var(--clr-white); margin: 0 0 24px !important; }
.fx-empty .com-content-article__info, .fx-empty dl.article-info, .fx-empty .article-info { display: none !important; }
.fx-empty .fx-rec .hikashop_products_listing, .fx-empty .fx-rec .hikashop_category_information { margin: 0; }
.fx-empty .component-area .page-header { display: none !important; }

/* ── Patch 33: full rows (max 4 columns, 24 per page) + «Показать ещё» ── */
@media (min-width: 769px) {
  .component-area .hikashop_products > .hk-row-fluid {
    grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 72px) / 4)), 1fr)) !important;
  }
}
.component-area .hikashop_products_pagination.fx-pag-hidden { display: none !important; }
.fx-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 44px 0 8px; }
.fx-more__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 280px; height: 52px; padding: 0 32px; border-radius: 8px; cursor: pointer;
  background: var(--btn-red); border: 1px solid var(--btn-red); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, border-color .2s, transform .2s;
}
.fx-more__btn:hover { background: var(--btn-red-hover); border-color: var(--btn-red-hover); }
.fx-more__btn:active { background: var(--btn-red-press, #8f1820); transform: translateY(1px); }
.fx-more__btn:disabled { opacity: .7; cursor: progress; }
.fx-more__btn.is-loading::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: fx-spin .8s linear infinite;
}
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx-more__count { font-size: 13px; color: var(--clr-text-muted); }
.component-area .hikashop_product.fx-new { animation: fx-fadein .35s ease both; }
@keyframes fx-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .fx-more__btn { width: 100%; min-width: 0; } }

/* ══ Patch 34: LIGHT THEME — white + red (replaces the black look) ══════════ */
:root {
  --clr-bg: #ffffff;
  --clr-bg-2: #f6f6f5;
  --clr-bg-3: #eeeeec;
  --clr-surface: #ffffff;
  --clr-border: #e5e5e3;
  --clr-border-2: #d3d3d0;
  --clr-text: #2b2b2b;
  --clr-text-muted: #6f6f6f;
  --clr-text-light: #454545;
  --clr-white: #161616;            /* in this template "white" = strongest text colour (headings, names) */
  --card-bg: #ffffff;
  --card-border: #e6e6e4;
  --img-stage: #ffffff;
  --shadow-sm: 0 1px 3px rgba(20,20,20,.08);
  --shadow-md: 0 6px 18px rgba(20,20,20,.08);
  --shadow-lg: 0 14px 40px rgba(20,20,20,.12);
  --bs-table-hover-bg: rgba(0,0,0,.02);
  --it-w: #e6e6e4;
  color-scheme: light;
}
html, body { background: var(--clr-bg) !important; color: var(--clr-text); }

/* header & footer */
.falmec-header { background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--clr-border) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.header-logo .logo-text, .logo-text, .footer-logo, a.footer-logo { color: #161616 !important; }
.logo-text::after { box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.15) !important; }
.header-nav a { color: #4a4a4a !important; }
.header-nav a:hover, .header-nav .active > a, .header-nav .current > a { color: #161616 !important; }
.falmec-footer, footer.falmec-footer { background: var(--clr-bg-2) !important; border-top: 1px solid var(--clr-border) !important; }

/* buttons: red with white text everywhere */
.fx-btn--gold, .fx-more__btn, .btn-primary, a.btn-primary, button.btn-primary,
button.hikabtn, .hikabtn.hikacart, .hikabtn-primary, .hikabtn-success,
.hikabtn:hover, .hikabtn.hikacart:hover, .btn-primary:hover { color: #fff !important; }
.fx-btn--ghost { color: #222 !important; border-color: var(--clr-border-2) !important; background: #fff !important; }
.fx-btn--ghost:hover { color: var(--btn-red) !important; border-color: var(--btn-red) !important; }
.fx-link { color: #161616 !important; }
.fx-link:hover { color: var(--btn-red) !important; }
.component-area ul.pagination .active .page-link { color: #fff !important; }

/* softer shadows on light background */
.fx-hero__media { box-shadow: 0 24px 60px rgba(20,20,20,.12) !important; border: 1px solid var(--clr-border); }
.fx-cat:hover, .component-area .hikashop_subcontainer:hover { box-shadow: 0 14px 34px rgba(20,20,20,.10) !important; }
.fx-hero { background: radial-gradient(60% 80% at 85% 40%, rgba(179,32,42,.06) 0%, rgba(255,255,255,0) 70%), #fff !important; }

/* header shadow when scrolled, sections */
.falmec-header, .falmec-header.scrolled, .falmec-header.is-scrolled, .falmec-header.header-scrolled { box-shadow: 0 4px 18px rgba(20,20,20,.06) !important; }
.fx-feature { background: #fff !important; }
.falmec-footer, footer.falmec-footer { background: #f1f1ef !important; }

/* product page: description stays in the left column so the sticky price box never covers it */
@media (min-width: 1025px) {
  .hikashop_product_page > .hikashop_product_bottom_part,
  .hikashop_product_page .hikashop_product_bottom_part { grid-column: 1 !important; }
}

/* forms (checkout, login, registration, address) */
.hikashop_checkout_page input[type="text"], .hikashop_checkout_page input[type="email"], .hikashop_checkout_page input[type="password"],
.hikashop_checkout_page input[type="tel"], .hikashop_checkout_page input[type="number"], .hikashop_checkout_page select, .hikashop_checkout_page textarea,
.component-area .form-control, .component-area .form-select, .component-area .inputbox,
.hikashop_checkout_page .input-password-toggle {
  background: #fff !important; color: #1f1f1f !important; border-color: var(--clr-border-2) !important;
}
.hikashop_checkout_page input::placeholder, .component-area .form-control::placeholder { color: #9a9a9a !important; }
.hikashop_checkout_page .input-password-toggle:hover { color: var(--btn-red) !important; }
.btn-secondary, .component-area .btn-secondary {
  background: #f1f1ef !important; color: #2b2b2b !important; border: 1px solid var(--clr-border-2) !important;
}
.btn-secondary:hover, .component-area .btn-secondary:hover { background: #e8e8e5 !important; color: #161616 !important; }
.hikashop_checkout_page .hikashop_field_error_msg { color: var(--btn-red) !important; }

/* shipping / payment cards */
.hikashop_checkout_page .hikashop_payment_methods_table td, .hikashop_checkout_page .hikashop_shipping_methods_table td {
  background: #fff !important; border-color: var(--clr-border-2) !important;
}
.hikashop_checkout_page .hikashop_payment_methods_table td:has(input:checked),
.hikashop_checkout_page .hikashop_shipping_methods_table td:has(input:checked) { background: #fdf5f5 !important; }

/* quantity +/- (cart, checkout, product page) */
.hikashop_checkout_cart .hikashop_product_quantity_field, .hikashop_product_quantity_field {
  background: #fff !important; color: #161616 !important; border-color: var(--clr-border-2) !important;
}
.hikashop_checkout_cart .hikashop_product_quantity_field_change, .hikashop_product_quantity_field_change {
  background: #f4f4f2 !important; color: #2b2b2b !important; border-color: var(--clr-border-2) !important;
}
.hikashop_checkout_cart .hikashop_product_quantity_field_change:hover, .hikashop_product_quantity_field_change:hover {
  background: #ebebe8 !important; color: var(--btn-red) !important;
}
.hikashop_checkout_cart .table, .hikashop_checkout_cart table { --bs-table-hover-bg: rgba(0,0,0,.02); }

/* add-to-cart notification */
.notifyjs-metro-base, .notifyjs-metro-lite-base {
  background: #fff !important; color: #2b2b2b !important; border: 1px solid var(--clr-border) !important;
  border-left: 3px solid var(--btn-red) !important; box-shadow: 0 14px 36px rgba(20,20,20,.14) !important;
}
.notifyjs-metro-base .title, .notifyjs-metro-lite-base .title { color: #161616 !important; }
.notifyjs-metro-base .text, .notifyjs-metro-lite-base .text { color: #555 !important; }
.notifyjs-metro-warning .title, .notifyjs-metro-error .title { color: var(--btn-red) !important; }


.hikashop_checkout_page .input-password-toggle, .hikashop_checkout_page .input-password-toggle [class*="icon-"] { color: #6f6f6f !important; }
.hikashop_checkout_page .hikabtn_checkout_continue, a#hikashop_checkout_shopping_button {
  background: #fff !important; color: #2b2b2b !important; border: 1px solid var(--clr-border-2) !important;
}
.hikashop_checkout_page .hikabtn_checkout_continue:hover, a#hikashop_checkout_shopping_button:hover { color: var(--btn-red) !important; border-color: var(--btn-red) !important; }

/* mobile menu panel */
.header-nav.open { background: #fff !important; box-shadow: 0 16px 32px rgba(20,20,20,.10) !important; border-bottom: 1px solid var(--clr-border); }

/* ── Patch 35: catalog root — tile photos back + 2-row bento layout for 5 categories ── */
/* the light-theme placeholder used the `background` shorthand and wiped the Patch 3 photos: colour only */
.component-area .hikashop_category_image:has(img[src*="barcode.png"]) { background-color: #fff !important; }
.component-area .hikashop_category_image:has(a[href$="/406-vytyazhki"]),
.component-area .hikashop_category_image:has(a[href$="/407-varochnye-paneli"]),
.component-area .hikashop_category_image:has(a[href$="/408-kuhonnye-moyki"]),
.component-area .hikashop_category_image:has(a[href$="/409-kuhonnye-smesiteli"]),
.component-area .hikashop_category_image:has(a[href$="/410-aksessuary"]) { background-color: #fff !important; }
.component-area .hikashop_category_image:has(a[href$="/406-vytyazhki"]) { background-image: url(/images/com_hikashop/upload/falmec-lumen-steel-90-CLUN90-E0P1-NEUI491F_1.jpg) !important; background-size: auto 80% !important; }
.component-area .hikashop_category_image:has(a[href$="/407-varochnye-paneli"]) { background-image: url(/images/com_hikashop/upload/quantum-pro-CUZQ90-03P8-ZZZN460F_1.jpg) !important; background-size: cover !important; }
.component-area .hikashop_category_image:has(a[href$="/408-kuhonnye-moyki"]) { background-image: url(/images/com_hikashop/upload/falmec-como-50-cm-inox-undermount-SCO5000U-00-SSF_1.jpeg) !important; }
.component-area .hikashop_category_image:has(a[href$="/409-kuhonnye-smesiteli"]) { background-image: url(/images/com_hikashop/upload/falmec-pure-steel-round-MPSR-00-SSF_1.png) !important; }
.component-area .hikashop_category_image:has(a[href$="/410-aksessuary"]) { background-image: url(/images/com_hikashop/upload/dispenser-dlya-zhidkogo-myla-stal-KACL-985-IF_1.png) !important; }

/* exactly 5 tiles → 2 large + 3 smaller, always two rows on tablet/desktop */
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category { grid-column: span 2 !important; }
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category:nth-child(-n+2) { grid-column: span 3 !important; }
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category .hikashop_category_image { aspect-ratio: 2 / 1 !important; }
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category:nth-child(-n+2) .hikashop_category_image { aspect-ratio: 5 / 2 !important; }
@media (max-width: 768px) {
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) { grid-template-columns: 1fr 1fr !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category { grid-column: auto !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category:first-child { grid-column: 1 / -1 !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category:nth-child(2) { grid-column: auto !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category:nth-child(-n+2) .hikashop_category_image,
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category .hikashop_category_image { aspect-ratio: 4 / 3 !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(5):last-child) > .hikashop_category:first-child .hikashop_category_image { aspect-ratio: 16 / 9 !important; }
}

.component-area .hikashop_category_image:has(img[src*="barcode.png"]) { background-repeat: no-repeat !important; background-position: center !important; }

/* ── Patch 36: «Вытяжки» — 7 sub-category tiles: 3 + 4 layout, big photos, short hints ── */
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important; gap: 20px !important;
}
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category { grid-column: span 3 !important; }
.component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category:nth-child(-n+3) { grid-column: span 4 !important; }

/* photo stage */
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_image {
  aspect-ratio: 16 / 10 !important; overflow: hidden; background: linear-gradient(180deg, #fafaf9 0%, #f1f1ef 100%) !important;
  border-bottom: 1px solid var(--clr-border);
}
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category:nth-child(-n+3) .hikashop_category_image { aspect-ratio: 16 / 9 !important; }
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_image > a {
  display: block; width: 100%; height: 100%; padding: 0 !important;
}
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_image img {
  width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center;
  mix-blend-mode: multiply; transform: scale(1.03); transition: transform .5s ease;
}
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category:hover .hikashop_category_image img { transform: scale(1.09); }

/* caption: name + hint, arrow on the right */
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_name { padding: 18px 22px 20px !important; }
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_name a { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_name::after {
  display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--clr-text-muted); content: '';
}
.hikashop_category_name:has(a[href$="/415-vstraivaemye"])::after { content: 'Прячутся в навесной шкаф' !important; }
.hikashop_category_name:has(a[href$="/416-naklonnye"])::after { content: 'Наклонный экран, свободно над головой' !important; }
.hikashop_category_name:has(a[href$="/417-nastennye"])::after { content: 'Классический монтаж на стену' !important; }
.hikashop_category_name:has(a[href$="/414-ostrovnye"])::after { content: 'Над кухонным островом' !important; }
.hikashop_category_name:has(a[href$="/418-potolochnye"])::after { content: 'Встраиваются в потолок' !important; }
.hikashop_category_name:has(a[href$="/419-so-steklom"])::after { content: 'Стеклянные панели и экраны' !important; }
.hikashop_category_name:has(a[href$="/420-uglovye"])::after { content: 'Для плиты в углу кухни' !important; }

/* hover */
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_subcontainer { transition: border-color .25s, box-shadow .25s, transform .25s; }
.hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category:hover .hikashop_subcontainer {
  border-color: rgba(179,32,42,.45) !important; transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category,
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category:nth-child(-n+3) { grid-column: span 2 !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category:nth-child(n+4) { grid-column: span 3 !important; }
}
@media (max-width: 768px) {
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category,
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category:nth-child(n) { grid-column: auto !important; }
  .component-area .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) > .hikashop_category:first-child { grid-column: 1 / -1 !important; }
  .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_name { padding: 12px 12px 14px !important; }
  .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_name a { font-size: 15px; }
  .hikashop_subcategories > .hk-row-fluid:has(> .hikashop_category:nth-child(7):last-child) .hikashop_category_name::after { font-size: 12px; }
}
/* ── Patch 37: hood filter — left sidebar (desktop) / drawer (mobile) ── */
.fx-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.fx-main { min-width: 0; }
.fx-side {
  position: sticky; top: calc(var(--header-h, 72px) + 16px); max-height: calc(100vh - var(--header-h, 72px) - 32px);
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--clr-border); border-radius: 14px;
}
.fx-side__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--clr-border); }
.fx-side__title { flex: 1; font-size: 17px; font-weight: 600; color: #161616; }
.fx-side__reset { display: none; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--btn-red); cursor: pointer; }
.fx-layout.is-filtering .fx-side__reset { display: inline; }
.fx-side__close { display: none; }
.fx-side__body { flex: 1; overflow: auto; padding: 4px 6px 10px; overscroll-behavior: contain; }
.fx-side__foot { display: none; }
.fx-sec + .fx-sec { border-top: 1px solid #efefed; }
.fx-sec__head {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 12px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: #222; text-align: left;
}
.fx-sec__name { flex: 1; }
.fx-sec__n:empty { display: none; }
.fx-sec__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--btn-red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.fx-sec__caret { width: 8px; height: 8px; border-right: 1.6px solid #888; border-bottom: 1.6px solid #888; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.fx-sec.is-open .fx-sec__caret { transform: rotate(225deg) translateY(-1px); }
.fx-sec__list { display: none; padding: 0 4px 10px; }
.fx-sec.is-open .fx-sec__list { display: block; }
.fx-opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #2b2b2b; }
.fx-opt:hover { background: #f6f6f5; }
.fx-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--btn-red); flex: none; }
.fx-opt__txt { flex: 1; }
.fx-opt__n { color: #a0a0a0; font-size: 12px; }
.fx-opt.is-empty { opacity: .4; }
.fx-opt.is-extra { display: none; }
.fx-sec.is-all .fx-opt.is-extra { display: flex; }
.fx-sec__more { margin: 2px 0 0 8px; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--btn-red); cursor: pointer; }

.fx-top { display: none; align-items: center; gap: 16px; margin: 0 0 20px; font-size: 14px; color: var(--clr-text-muted); }
.fx-layout.is-filtering .fx-top { display: flex; }
.fx-top__open { display: none; }
.fx-top__count { color: #161616; font-weight: 500; }
.fx-top__reset { background: none; border: 0; padding: 0; font: inherit; color: var(--btn-red); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fx-filter__results.is-loading { min-height: 240px; position: relative; }
.fx-filter__results.is-loading::after { content: 'Подбираем товары…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--clr-text-muted); font-size: 15px; }
.fx-filter__empty { display: none; padding: 40px 0; text-align: center; color: var(--clr-text-muted); }

/* the product grid next to the sidebar: 3 columns (24 = full rows) */
@media (min-width: 1025px) {
  .fx-main .hikashop_products > .hk-row-fluid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* tablet / phone: «Фильтры» button + drawer */
@media (max-width: 1024px) {
  .fx-layout { display: block; }
  .fx-top { display: flex; flex-wrap: wrap; }
  .fx-top__open {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; background: #fff;
    border: 1px solid var(--clr-border-2); border-radius: 10px; font: inherit; font-size: 14px; font-weight: 500; color: #222; cursor: pointer;
  }
  .fx-top__icon { width: 16px; height: 12px; background:
    linear-gradient(#444,#444) 0 0/100% 2px no-repeat, linear-gradient(#444,#444) 3px 5px/10px 2px no-repeat, linear-gradient(#444,#444) 6px 10px/4px 2px no-repeat; }
  .fx-top__badge:empty { display: none; }
  .fx-top__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--btn-red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
  .fx-top__reset { display: none; }
  .fx-layout.is-filtering .fx-top__reset { display: inline; }
  .fx-side {
    position: fixed; z-index: 2000; top: 0; bottom: 0; left: 0; width: min(380px, 100%); max-height: none; border-radius: 0; border: 0;
    transform: translateX(-100%); transition: transform .28s ease; box-shadow: 0 0 40px rgba(0,0,0,.18);
  }
  .fx-drawer-open .fx-side { transform: none; }
  .fx-drawer-open::after { content: ''; position: fixed; inset: 0; z-index: 1999; background: rgba(20,20,20,.35); }
  .fx-drawer-open { overflow: hidden; }
  .fx-side__close { display: block; width: 36px; height: 36px; margin-right: -8px; background: none; border: 0; font-size: 28px; line-height: 1; color: #555; cursor: pointer; }
  .fx-side__foot { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--clr-border); }
  .fx-side__apply { width: 100%; min-width: 0; }
}

/* ── Patch 38: compact product page + tabs ── */
.hikashop_product_page.fx-pp-on { display: block !important; }
.fx-pp-on > .hk-row-fluid { display: none !important; }
.fx-pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
.fx-pp__media .hikashop_product_left_part { width: 100% !important; grid-row: auto !important; }
.fx-pp-on .hikashop_main_image_div { aspect-ratio: auto !important; height: 420px !important; padding: 24px !important; border: 1px solid var(--clr-border); border-radius: 14px; background: #fff !important; box-sizing: border-box; }
.fx-pp-on #hikashop_image_main_thumb_div { height: 100% !important; }
.fx-pp-on .hikashop_main_image_div img, .fx-pp-on #hikashop_main_image { max-height: 370px !important; }
.fx-pp-on .hikashop_small_image_div a { width: 64px; height: 64px; }
.fx-pp__info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fx-pp__info .hikashop_product_top_part { padding: 0 !important; }
.fx-pp__info h1 { font-size: 30px !important; line-height: 1.2 !important; margin: 0 0 10px !important; }
.fx-pp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--clr-text-muted); }
.fx-pp__rate { display: inline-flex; text-decoration: none !important; }
.fx-pp__rate .hikashop_product_vote_mini { margin: 0 !important; }
.fx-pp-on .hikashop_product_right_part { position: static !important; margin: 0 !important; padding: 22px 24px 24px !important; }
.fx-pp-on .hikashop_product_right_part::before { margin-bottom: 12px; }
.fx-pp-on .hikashop_product_price_main { margin-bottom: 16px !important; }
.fx-pp-on .hikashop_product_quantity_main .hikacart { height: 48px; }
.fx-keyspecs dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; font-size: 14px; }
.fx-keyspecs dt, .fx-keyspecs dd { margin: 0; padding: 8px 0; border-bottom: 1px dashed #e4e4e1; }
.fx-keyspecs dt { color: var(--clr-text-muted); padding-right: 16px; }
.fx-keyspecs dd { color: #1d1d1d; text-align: right; }
.fx-keyspecs__all { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--btn-red) !important; text-decoration: none; border-bottom: 1px solid rgba(179,32,42,.3); }
.fx-tabs { margin-top: 48px; scroll-margin-top: calc(var(--header-h, 72px) + 16px); }
.fx-tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--clr-border); overflow-x: auto; scrollbar-width: none; }
.fx-tabs__btn { position: relative; flex: none; padding: 14px 20px; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--clr-text-muted); cursor: pointer; }
.fx-tabs__btn:hover { color: #1d1d1d; }
.fx-tabs__btn.is-active { color: #1d1d1d; }
.fx-tabs__btn.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--btn-red); }
.fx-tabs__n { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: #f0f0ee; font-size: 12px; line-height: 20px; text-align: center; }
.fx-tabs__pane { display: none; padding-top: 28px; }
.fx-tabs__pane.is-active { display: block; }
.fx-tabs .hikashop_product_bottom_part { margin: 0 !important; grid-column: auto !important; }
.fx-tabs .hikashop_product_description_main { margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: 860px; }
.fx-tabs .hikashop_product_description_main::before { content: none !important; display: none !important; }
.fx-specs-wrap { max-width: 860px; }
.fx-specs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fx-specs th, .fx-specs td { padding: 11px 14px !important; border-bottom: 1px solid var(--clr-border); text-align: left; vertical-align: top; }
.fx-specs th { width: 40%; font-weight: 400; color: var(--clr-text-muted); }
.fx-specs td { color: #1d1d1d; }
.fx-specs tr:nth-child(odd) { background: #fafaf9; }
.fx-muted { color: var(--clr-text-muted); font-size: 14px; }
#fx-tab-reviews #hikashop_comment_form { max-width: 760px; margin: 0; padding: 0; border: 0; }
#fx-tab-reviews .hika_comment_listing { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
#fx-tab-reviews .hika_comment_listing td { padding: 14px 0; border-bottom: 1px solid var(--clr-border); }
#fx-tab-reviews .hika_comment_listing_empty { color: var(--clr-text-muted); }
#fx-tab-reviews .hikashop_product_vote_form { padding: 24px; border: 1px solid var(--clr-border); border-radius: 14px; background: #fafaf9; }
#fx-tab-reviews .hikashop_vote_form table { width: 100%; }
#fx-tab-reviews .hikashop_vote_form td { display: block; padding: 4px 0; }
#fx-tab-reviews .hikashop_vote_form input[type="text"], #fx-tab-reviews .hikashop_vote_form textarea {
  width: 100% !important; max-width: none; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--clr-border-2, #d8d8d4); border-radius: 10px; background: #fff; font: inherit; font-size: 15px;
}
#fx-tab-reviews .hikashop_vote_form textarea { min-height: 120px; }
#fx-tab-reviews .hikashop_vote_form .hikabtn, #fx-tab-reviews .hikashop_vote_form input[type="button"] {
  margin-top: 12px; height: 46px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--btn-red) !important; color: #fff !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
#fx-tab-reviews .hk-rate-star { cursor: pointer; }
.fx-reviews__note { margin: 12px 0 0; }
@media (max-width: 1024px) {
  .fx-pp { grid-template-columns: 1fr; gap: 24px; }
  .fx-pp-on .hikashop_main_image_div { height: 320px !important; }
  .fx-pp-on .hikashop_main_image_div img, .fx-pp-on #hikashop_main_image { max-height: 270px !important; }
  .fx-pp__info h1 { font-size: 24px !important; }
  .fx-tabs { margin-top: 36px; }
  .fx-tabs__btn { padding: 12px 14px; font-size: 15px; }
  .fx-specs th { width: 45%; }
}

/* ── Patch 38b: reviews form + tighter price card ── */
#fx-tab-reviews .hikashop_listing_comment { border: 0 !important; padding: 0 !important; margin: 0 0 24px; background: none !important; font-weight: 400; }
#fx-tab-reviews .hika_comment_listing, #fx-tab-reviews .hika_comment_listing td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; font-weight: 400 !important; }
#fx-tab-reviews .hika_comment_listing_empty { padding: 0 0 4px !important; border: 0 !important; }
#fx-tab-reviews .hikashop_vote_form > br, #fx-tab-reviews .hikashop_vote_form .clear_both { display: none; }
#fx-tab-reviews .hikashop_form_comment { margin: 0 0 14px !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 18px; font-weight: 600; color: #1d1d1d; }
#fx-tab-reviews .hikashop_vote_form .hikashop_vote_stars { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--clr-text-muted); }
#fx-tab-reviews .hikashop_vote_form .hk-rate-star { transform: scale(1.35); margin: 0 4px; }
#fx-tab-reviews .hikashop_comment_form label { font-size: 13px; font-weight: 400; color: var(--clr-text-muted); }
#fx-tab-reviews .hikashop_comment_form tr { display: block; margin-bottom: 6px; }
.fx-pp-on .hikashop_product_right_part .hikashop_product_quantity_main_alt { display: none !important; }
.fx-pp-on .hikashop_product_price_main { margin-bottom: 18px !important; }
@media (min-width: 1025px) { .fx-pp-on .hikashop_main_image_div { height: 400px !important; } }

/* ── Patch 38c ── */
#fx-tab-reviews .hikashop_vote_form .hikashop_vote_stars { justify-content: flex-start !important; }
#fx-tab-reviews .hikashop_vote_form .hk-rating { margin: 0 0 0 8px !important; float: none !important; display: inline-flex; }
#fx-tab-reviews .hikashop_comment_form td:first-child { padding-bottom: 0 !important; }
