/* Z Komůrky — modern static theme */
:root {
  --green: #07a74f;
  --green-dark: #059642;
  --green-light: #e8f8ef;
  --gold: #ffc500;
  --gold-dark: #e6b000;
  --ink: #1a1937;
  --ink-muted: #5c5b70;
  --surface: #ffffff;
  --bg: #f4f7f5;
  --border: #e2e8e4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26, 25, 55, 0.08);
  --shadow-hover: 0 12px 32px rgba(26, 25, 55, 0.12);
  --font: "Roboto", system-ui, sans-serif;
  --font-head: "Poppins", var(--font);
  --container: 1280px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }

.no-display, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ── Layout ── */
.overall-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

.user-action { display: none; }

/* ── Top bar ── */
.top-navigation-bar {
  background: var(--ink);
  font-size: 0.8125rem;
  border: none;
}
.top-navigation-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}
.top-navigation-bar-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.top-navigation-bar a {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 400;
}
.top-navigation-bar a:hover { color: var(--gold) !important; }
.top-navigation-tools a {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
}
.top-navigation-menu-trigger { display: none; }

/* ── Header ── */
#header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-top .navigation-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
}
.site-name { margin: 0; line-height: 1; }
.site-name a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}
.site-name a::before {
  content: "";
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #0bc964);
  flex-shrink: 0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.5 2 6 4.5 6 8c0 4.5 6 12 6 12s6-7.5 6-12c0-3.5-2.5-6-6-6zm0 8.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center/22px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.5 2 6 4.5 6 8c0 4.5 6 12 6 12s6-7.5 6-12c0-3.5-2.5-6-6-6zm0 8.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center/22px no-repeat;
  background-color: var(--green);
}
.site-name a::after { content: "Z Komůrky"; }

.search-form fieldset {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  margin: 0; padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form fieldset:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0.65rem 1rem 0.65rem 2.5rem !important;
  font-size: 0.9375rem;
  box-shadow: none !important;
}
.search-input-icon { display: none; }
.search-form .search-button {
  border: none !important;
  border-radius: 0 !important;
  background: var(--green) !important;
  color: #fff !important;
  padding: 0.65rem 1.25rem !important;
  font-weight: 600;
  cursor: pointer;
}
.search-form .search-button:hover { background: var(--green-dark) !important; }

.navigation-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navigation-buttons .btn-icon,
.navigation-buttons .toggle-window {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink) !important;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}
.navigation-buttons .cart-count {
  background: var(--green-light) !important;
  border-color: transparent !important;
  color: var(--green) !important;
}
.navigation-buttons .cart-count:hover { background: var(--green) !important; color: #fff !important; }

/* Search & menu icon buttons */
.navigation-buttons a[data-target="search"],
.navigation-buttons a[data-target="navigation"] {
  font-size: 0 !important;
  color: transparent !important;
  position: relative;
  padding: 0 !important;
}
.navigation-buttons a[data-target="search"]::before,
.navigation-buttons a[data-target="navigation"]::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--ink);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.navigation-buttons a[data-target="search"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}
.navigation-buttons a[data-target="navigation"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E");
}
.navigation-buttons a[data-target="search"]:hover::before,
.navigation-buttons a[data-target="navigation"]:hover::before {
  background-color: var(--green);
}

/* Hide dead login / registration (static mirror) */
.top-nav-button-login,
a[data-testid="headerSignup"] {
  display: none !important;
}

/* ── Main nav ── */
.header-bottom {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
#navigation .navigation-in > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
#navigation .menu-level-1 > li > a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--ink) !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
#navigation .menu-level-1 > li > a b { font-weight: 600; font-size: inherit; }
#navigation .menu-level-1 > li:hover > a,
#navigation .menu-level-1 > li.active > a {
  color: var(--green) !important;
  border-bottom-color: var(--green);
}
.submenu-arrow { display: none; }

#navigation .menu-level-2 {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  list-style: none;
  margin: 0; padding: 0.5rem;
  z-index: 100;
}
#navigation .menu-level-1 > li.ext { position: relative; }
#navigation .menu-level-1 > li.ext:hover .menu-level-2 { display: block; }
#navigation .menu-level-2 a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
  font-size: 0.875rem;
}
#navigation .menu-level-2 a:hover { background: var(--green-light); color: var(--green) !important; }
#navigation .menu-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.menu-helper, .navigation-close { display: none; }

/* ── Content layout ── */
.content-wrapper { padding-block: 2rem; flex: 1; }
.content-wrapper-in {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Sidebar ── */
.box-topProducts { display: block !important; }

/* Full-width content when sidebar only had Top 10 */
.sidebar-left:not(:has(.box-filters)):not(:has(#filters)):not(:has(.box-topProducts)) {
  display: none !important;
}
.content-wrapper-in:not(:has(.sidebar-left .box-filters)):not(:has(.sidebar-left #filters)):not(:has(.sidebar-left .box-topProducts)) {
  grid-template-columns: 1fr;
}

.sidebar-inner .box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-inner h2, .sidebar-inner h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green-light);
  color: var(--ink);
}
.top-products { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.top-products li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.top-products li:last-child { border-bottom: none; }
.top-products-image {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.top-products-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-products-content { display: flex; flex-direction: column; gap: 0.125rem; }
.top-products-name {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink);
}
.top-products-content strong {
  font-size: 0.875rem;
  color: var(--green);
  font-weight: 700;
}

.filters-wrapper .filters { font-size: 0.875rem; }
.filters-unveil-button-wrapper { margin-bottom: 0.75rem; }
#manufacturer-filter { display: none !important; }

/* ── Product grid ── */
.homepage-group-title, .category-title, h1.category-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.products-wrapper { margin-bottom: 2.5rem; }
.products-block, .products-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.products-block > .product,
.products-page > .product { min-width: 0; }

.products-block .p,
.products-page .p {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.products-block .p:hover,
.products-page .p:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.products-block .p > a.image,
.products-block .p .image {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: #fafafa;
  overflow: hidden;
}
.products-block .p > a.image::before,
.products-block .img > a::before { display: none !important; }
.products-block .p img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.3s;
  opacity: 1 !important;
  visibility: visible !important;
}
.product-slider .product.inactive,
.product-slider .product.inactive .p,
.product-slider .product.inactive img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.products-block .p:hover img { transform: scale(1.05); }

.flags {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  z-index: 2;
}
.flag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: #fff;
}
.flag-action, .flag-discount { background: #d63500; }
.flag-new { background: var(--green); }

.p-in, .p-bottom { padding: 0 1rem; }
.p-in .name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink) !important;
  margin: 0.75rem 0 0.5rem;
  min-height: 2.8em;
}
.p-in .name:hover { color: var(--green) !important; }
.availability span { font-size: 0.8125rem; font-weight: 500; }
.stars-placeholder, .ratings-wrapper .stars { display: none; }
.products-block .p > a::before,
.products-block .img > a::before,
.products-page .p > a::before { display: none !important; padding: 0 !important; }
.p-bottom {
  padding-bottom: 1rem;
  margin-top: auto;
}
.prices { margin-bottom: 0.75rem; }
.price-final strong, .price strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
}
.price-standard {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}
.price-save {
  font-size: 0.75rem;
  font-weight: 600;
  color: #d63500;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-cart, .btn-conversion, .btn-primary, .add-to-cart-button {
  background: var(--green) !important;
  color: #fff !important;
  width: 100%;
}
.btn-cart:hover, .btn-conversion:hover, .btn-primary:hover, .add-to-cart-button:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}
.btn-default {
  background: var(--bg) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
}
.btn-secondary { background: var(--ink) !important; color: #fff !important; }

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-right: 0.5rem;
}
.quantity .amount {
  width: 3rem;
  text-align: center;
  border: none !important;
  padding: 0.5rem !important;
  font-weight: 600;
}
.quantity .increase, .quantity .decrease {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  line-height: 1;
}
.quantity .increase::before { content: "+"; }
.quantity .decrease::before { content: "−"; }
.p-tools form.pr-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.p-tools .btn-cart { flex: 1; min-width: 120px; }

/* ── Carousel ── */
.banners-row { margin-bottom: 2rem; }
.wide-carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.carousel-inner { position: relative; min-height: 280px; }
.carousel-inner .item {
  min-height: 320px;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}
.carousel-inner .extended-empty {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 320px;
  padding: 2rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.carousel-control {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9) !important;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.9;
  z-index: 5;
  box-shadow: var(--shadow);
}
.carousel-control.left { left: 1rem; }
.carousel-control.right { right: 1rem; }
.carousel-control::before {
  color: var(--green) !important;
  background: none !important;
  font-size: 1.25rem;
}

/* ── Product detail ── */
.p-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.p-image-wrapper, .p-image {
  background: #fafafa;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-image img {
  max-height: 400px;
  object-fit: contain;
  margin: 0 auto;
}
.p-detail-inner-header h1, .p-detail h1 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
}
.p-final-price-wrapper > strong {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green);
}
.p-detail-tabs-wrapper {
  grid-column: 1 / -1;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.shp-tabs { display: flex; gap: 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.shp-tab-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-muted) !important;
}
.shp-tab-link.active, .shp-tab-link:hover {
  background: var(--green-light);
  color: var(--green) !important;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: none !important;
}

/* ── Pagination ── */
.pagination-wrapper { margin-top: 2rem; text-align: center; }
.pagination { display: inline-flex; gap: 0.375rem; list-style: none; padding: 0; }
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink) !important;
  font-weight: 500;
}
.pagination-link:hover, .pagination .active .pagination-link {
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
}

/* ── Footer ── */
#footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
}
#footer a { color: rgba(255,255,255,0.9); }
#footer a:hover { color: var(--gold); }
.footer-rows { display: none !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  font-size: 0.8125rem;
  opacity: 0.7;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
#signature { opacity: 0.5; }

/* ── Blog hero ── */
.article-hero {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.p-image a {
  display: block;
}
.p-image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

/* ── Blog & articles ── */
.news-item, .article-detail, .blog-post {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.news-item h1, .article-detail h1 { font-family: var(--font-head); }

/* ── Forms ── */
.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

/* ── Cookie bar ── */
.siteCookies {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: auto;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}
.siteCookies.siteCookies--hidden {
  display: none !important;
}
.siteCookies, .siteCookies__form {
  background: var(--ink) !important;
  color: #fff !important;
}
.siteCookies__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: min(var(--container), 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0;
}
.siteCookies__content {
  flex: 1 1 280px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.siteCookies__links { margin: 0.375rem 0 0; }
.siteCookies__link { color: var(--gold) !important; }
.siteCookies__buttonWrap {
  flex: 0 0 auto;
}
.siteCookies__button {
  display: inline-block;
  padding: 0.625rem 1.5rem !important;
  border: none !important;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  background: var(--green) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
}
.siteCookies__button:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .content-wrapper-in { grid-template-columns: 1fr; }
  .sidebar-left { order: 2; }
  .products-block, .products-page { grid-template-columns: repeat(2, 1fr); }
  .p-detail-inner { grid-template-columns: 1fr; }
}

/* ── Shoptet base reset (replaces dead frontend_master bundle) ── */
ul, ol { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5rem; font-family: var(--font-head); line-height: 1.25; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.col-sm-4 { flex: 1 1 280px; min-width: 0; }

#navigation .menu-level-2 > li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.5rem;
  align-items: center;
}
#navigation .menu-level-2 > li > div { min-width: 0; }

.product-slider {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.product-slider > .product { min-width: 0; }

.p-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.p-data-wrapper { min-width: 0; }
.p-image-wrapper { min-width: 0; }

.detail-parameters th,
.detail-parameters td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.detail-parameters th {
  width: 38%;
  color: var(--ink-muted);
  font-weight: 500;
}

.p-detail-inner-header-mobile,
.ratings-and-brand,
.stars-wrapper,
.link-icons,
.social-buttons-wrapper,
.buttons-wrapper.hledejceny-buttons-wrapper,
.buttons-wrapper.cofidis-buttons-wrapper,
.navigationActions,
.menu-helper { display: none !important; }

.custom-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.custom-footer .banner-wrapper {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
}

.category-perex, .category-content, .p-short-description, .basic-description {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.news-wrapper .news-item {
  margin-bottom: 1rem;
}
.news-wrapper .news-item a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--ink) !important;
}
.news-wrapper .news-item a:hover { color: var(--green) !important; }

.manufacturer-detail, .brand-header {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filters-wrapper .filter-label { font-weight: 600; margin-bottom: 0.5rem; display: block; }
.filters-wrapper label { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; cursor: pointer; }

.empty-content-notice {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted);
}

.popup-widget, .cart-widget, .search-widget { display: none !important; }

@media (max-width: 767px) {
  .top-navigation-bar-menu { display: none; }
  .top-navigation-menu-trigger {
    display: block;
    color: #fff !important;
    cursor: pointer;
    font-weight: 500;
  }
  .top-navigation-bar.menu-open .top-navigation-bar-menu { display: flex; flex-direction: column; }

  .header-top .navigation-wrapper {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .site-name { grid-column: 1; }
  .navigation-buttons { grid-column: 2; grid-row: 1; }
  .search { grid-column: 1 / -1; }

  .header-bottom { display: none; }
  body.nav-open .header-bottom {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--surface);
    z-index: 999;
    overflow-y: auto;
    padding: 1rem;
  }
  body.nav-open .header-bottom .menu-level-1 { flex-direction: column; }
  body.nav-open .header-bottom .menu-level-2 {
    position: static;
    display: block !important;
    box-shadow: none;
    padding-left: 1rem;
  }

  .products-block, .products-page, .product-slider { grid-template-columns: 1fr; }
  .carousel-inner, .carousel-inner .item, .carousel-inner .extended-empty { min-height: 180px; }
  .carousel-inner .extended-empty { font-size: 1.25rem; }
  .p-detail-inner { grid-template-columns: 1fr; }
}
