/*
Theme Name: Storefront Child – CZ Nábytkář Břeclav
Theme URI: https://example.com/
Description: Vlastní child theme pro CZ Nábytkář Břeclav postavená na WooCommerce Storefront.
Author: CZ Nábytkář Břeclav
Template: storefront
Version: 1.0.23
Text Domain: cznabytkar
*/

/* =========================================================
   CZ Nábytkář Břeclav – design systém
   ========================================================= */

:root {
  --czn-red: #cc101d;
  --czn-red-dark: #a80e18;
  --czn-ink: #15181d;
  --czn-text: #2e3339;
  --czn-muted: #6c737d;
  --czn-line: #e7e5e2;
  --czn-soft: #f7f5f2;
  --czn-soft-2: #f1efec;
  --czn-white: #fff;
  --czn-topbar: #363a3f;

  --czn-wide: 1480px;
  --czn-content: 1280px;
  --czn-radius: 8px;
  --czn-shadow: 0 12px 30px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  color: var(--czn-text);
  background: var(--czn-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

body,
button,
input,
textarea,
select {
  font-family: inherit;
}

a { color: var(--czn-red); }
a:hover { color: var(--czn-red-dark); }

.site {
  overflow-x: clip;
}

.czn-wrap {
  width: min(calc(100% - 48px), var(--czn-wide));
  margin-inline: auto;
}

.czn-wrap--content {
  width: min(calc(100% - 48px), var(--czn-content));
  margin-inline: auto;
}

/* Storefront cleanup */
.site-content { padding-top: 0; }
.site-main { margin-bottom: 0; }
.content-area { width: 100%; float: none; margin: 0; }
.widget-area { display: none; }

.woocommerce-breadcrumb {
  width: min(calc(100% - 48px), var(--czn-wide));
  margin: 20px auto;
}

.storefront-breadcrumb { margin: 0; }
.site-footer { margin-top: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.czn-btn,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.added_to_cart,
.wc-block-components-button {
  border-radius: 5px !important;
}

.czn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: 0 24px;
  background: var(--czn-red);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
  border: 1px solid var(--czn-red);
  transition: .2s ease;
}

.czn-btn:hover {
  background: var(--czn-red-dark);
  border-color: var(--czn-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.czn-btn--ghost {
  background: #fff;
  color: var(--czn-ink);
  border-color: #cfd2d5;
}

.czn-btn--ghost:hover {
  background: var(--czn-soft);
  color: var(--czn-ink);
  border-color: #bfc3c7;
}

/* =========================================================
   Header
   ========================================================= */
.czn-topbar {
  background: var(--czn-topbar);
  color: #fff;
  font-size: .78rem;
}

.czn-topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.czn-topbar__group {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.czn-topbar a {
  color: #fff;
  text-decoration: none;
  opacity: .95;
}

.czn-topbar a:hover { opacity: 1; text-decoration: underline; }

.czn-topbar__item {
  white-space: nowrap;
}

.czn-header {
  background: #fff;
  border-bottom: 1px solid var(--czn-line);
  position: relative;
  z-index: 20;
}

.czn-header__inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 34px;
}

.czn-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--czn-ink);
  line-height: 1;
  font-weight: 900;
}

.czn-logo img {
  max-height: 58px;
  width: auto;
}

.czn-logo__fallback {
  display: inline-grid;
  line-height: .9;
  font-weight: 950;
  letter-spacing: -.04em;
  font-size: 1.35rem;
}

.czn-logo__fallback strong { color: var(--czn-red); }

.czn-nav .menu {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 34px;
  list-style: none;
}

.czn-nav .menu > li { margin: 0; }

.czn-nav a {
  color: var(--czn-ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}

.czn-nav a:hover,
.czn-nav .current-menu-item > a {
  color: var(--czn-red);
}

.czn-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.czn-search {
  position: relative;
  width: min(260px, 19vw);
}

.czn-search input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 15px;
  background: #fff;
  border: 1px solid #d9dcdf;
  border-radius: 5px;
  box-shadow: none;
  font-size: .86rem;
}

.czn-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent !important;
  color: var(--czn-ink) !important;
  padding: 0;
  box-shadow: none;
}

.czn-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--czn-ink);
  text-decoration: none;
  font-size: 1.3rem;
}

.czn-cart__count {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--czn-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
}

.czn-mobile-toggle {
  display: none;
  background: transparent !important;
  color: var(--czn-ink) !important;
  border: 0;
  padding: 8px;
  font-size: 1.35rem;
}

/* =========================================================
   Homepage Hero
   ========================================================= */
.czn-home { margin: 0; }

.czn-hero {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 460px;
  background: var(--czn-soft);
  overflow: hidden;
}

.czn-hero__copy {
  padding: clamp(38px, 4vw, 58px) clamp(34px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.czn-kicker {
  color: var(--czn-red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .23em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.czn-hero h1 {
  margin: 0 0 16px;
  max-width: 590px;
  font-size: clamp(2.8rem, 3.45vw, 4.35rem);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--czn-ink);
  font-weight: 900;
}

.czn-hero__lead {
  max-width: 520px;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  color: #3f454c;
  margin-bottom: 18px;
}

.czn-hero__image {
  min-height: 460px;
  background: #ddd center/cover no-repeat;
  position: relative;
}

.czn-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,245,242,.16), rgba(247,245,242,0) 20%);
  pointer-events: none;
}

.czn-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

/* Let the copy determine desktop hero height; crop the photo to match. */
@media (min-width: 981px) {
  .czn-hero,
  .czn-hero__image {
    min-height: 0;
  }

  .czn-hero__image img {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
}
/* Hero – dvě výhody vedle sebe */
.czn-hero__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 18px;
}

.czn-hero__features .czn-feature {
    min-width: 0;
}

.czn-feature {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}

.czn-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--czn-ink);
  font-size: 1.35rem;
}

.czn-feature strong {
  display: block;
  color: var(--czn-ink);
  font-size: .91rem;
  line-height: 1.2;
  margin-bottom: 3px;
}

.czn-feature small {
  color: var(--czn-muted);
  font-size: .75rem;
  line-height: 1.25;
}

/* =========================================================
   Store information band
   ========================================================= */
.czn-store {
  padding: 14px 0 0;
}

.czn-store__grid {
  display: grid;
  grid-template-columns: 1.35fr .95fr 1fr .8fr;
  min-height: 245px;
  background: #fff;
  border: 1px solid var(--czn-line);
}

.czn-store__photo,
.czn-store__map {
  min-height: 245px;
  overflow: hidden;
  background: var(--czn-soft-2);
}

.czn-store__photo img,
.czn-store__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.czn-store__details,
.czn-store__benefits {
  padding: 28px 30px;
}

.czn-store h2 {
  margin: 0 0 12px;
  color: var(--czn-ink);
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  letter-spacing: -.03em;
}

.czn-contact-list,
.czn-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.czn-contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin-bottom: 8px;
  font-size: .9rem;
}

.czn-contact-list a {
  color: inherit;
  text-decoration: none;
}

.czn-contact-list a:hover { color: var(--czn-red); }

.czn-benefit-list {
  display: grid;
  gap: 18px;
  align-content: center;
  height: 100%;
}

.czn-benefit-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  font-weight: 650;
  color: var(--czn-ink);
}

/* =========================================================
   Product category cards
   ========================================================= */
.czn-categories {
  padding: 24px 0 58px;
}

.czn-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.czn-section-head h2 {
  margin: 0;
  color: var(--czn-ink);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  letter-spacing: -.04em;
}

.czn-section-head a {
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
}

.czn-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.czn-category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--czn-radius);
  background: var(--czn-soft-2);
  text-decoration: none;
  color: var(--czn-ink);
}

.czn-category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .3s ease;
}

.czn-category-card:hover img { transform: scale(1.025); }

.czn-category-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 54px;
  padding: 10px 56px 10px 16px;
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.15rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
}

.czn-category-card__arrow {
  position: absolute;
  right: 13px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  color: var(--czn-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* =========================================================
   Footer
   ========================================================= */
.czn-footer {
  background: #202327;
  color: rgba(255,255,255,.85);
  padding: 34px 0;
}

.czn-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  font-size: .85rem;
}

.czn-footer a { color: #fff; }

/* =========================================================
   WooCommerce visual alignment
   ========================================================= */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border: 1px solid var(--czn-line);
  border-radius: 8px;
  padding: 0 0 18px;
  overflow: hidden;
}

.woocommerce ul.products li.product img {
  margin-bottom: 14px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 16px;
  margin-right: 16px;
}

.woocommerce ul.products li.product .button {
  background: var(--czn-red);
  color: #fff;
}

.woocommerce div.product .summary .button,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--czn-red);
  color: #fff;
}

.woocommerce div.product .summary .button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--czn-red-dark);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1220px) {
  .czn-header__inner {
    grid-template-columns: 220px 1fr auto;
    gap: 18px;
  }

  .czn-nav .menu { gap: 20px; }
  .czn-search { width: 210px; }
  .czn-hero { grid-template-columns: 44% 56%; }

  .czn-store__grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .czn-store__benefits {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  .czn-topbar__group:first-child .czn-topbar__item:nth-child(3) {
    display: none;
  }

  .czn-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .czn-nav {
    display: none;
    grid-column: 1 / -1;
    padding-bottom: 18px;
  }

  .czn-nav.is-open { display: block; }

  .czn-nav .menu {
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .czn-nav li {
    border-top: 1px solid var(--czn-line);
  }

  .czn-nav a {
    display: block;
    padding: 13px 0;
  }

  .czn-search,
  .czn-header__actions .czn-btn {
    display: none;
  }

  .czn-mobile-toggle { display: inline-flex; }

  .czn-hero {
    grid-template-columns: 1fr;
  }

  .czn-hero__image,
  .czn-hero__image img {
    min-height: 380px;
  }

  .czn-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .czn-wrap,
  .czn-wrap--content,
  .woocommerce-breadcrumb {
    width: min(calc(100% - 30px), var(--czn-wide));
  }

  .czn-topbar__inner {
    min-height: 30px;
    justify-content: center;
  }

  .czn-topbar__group:first-child {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .czn-topbar__group:first-child .czn-topbar__item:nth-child(2),
  .czn-topbar__group:last-child {
    display: none;
  }

  .czn-logo img { max-height: 46px; }

  .czn-header__inner {
    min-height: 66px;
  }

  .czn-hero__copy {
    padding: 42px 24px 30px;
  }

  .czn-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .czn-hero__features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .czn-hero__image,
  .czn-hero__image img {
    min-height: 280px;
  }

  .czn-store__grid {
    grid-template-columns: 1fr;
  }

  .czn-store__benefits {
    grid-column: auto;
  }

  .czn-store__photo,
  .czn-store__map {
    min-height: 220px;
  }

  .czn-category-grid {
    grid-template-columns: 1fr;
  }

  .czn-category-card,
  .czn-category-card img {
    min-height: 230px;
    height: 230px;
  }

  .czn-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .czn-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   v1.0.1 fixes – navigation, search, Storefront/WooCommerce pages
   ========================================================= */

/* Keep normal Storefront pages in a centered content container. */
.czn-content-shell {
  width: min(calc(100% - 48px), var(--czn-wide));
  max-width: var(--czn-wide);
  margin-inline: auto;
  padding-top: 36px;
  padding-bottom: 56px;
  box-sizing: border-box;
}

.czn-content-shell::before,
.czn-content-shell::after {
  content: "";
  display: table;
  clear: both;
}

/* Storefront applies margins/widths to many generic elements. Reset the custom header. */
.czn-header *,
.czn-topbar * {
  box-sizing: border-box;
}

.czn-header ul,
.czn-header ol,
.czn-header li {
  margin: 0;
  padding: 0;
}

.czn-header li {
  list-style: none;
}

.czn-header form {
  margin: 0;
}

.czn-header__inner {
  grid-template-columns: minmax(210px, 280px) minmax(300px, 1fr) auto;
}

.czn-nav {
  min-width: 0;
}

.czn-nav > .menu,
.czn-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.czn-nav .menu > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.czn-nav .menu > li::before,
.czn-nav .menu > li::marker {
  content: none !important;
  display: none !important;
}

.czn-nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 !important;
  line-height: 1.2;
}

/* Search – neutralize Storefront form/input rules and vertically center it. */
.czn-header__actions {
  align-self: center;
  min-height: 84px;
}

.czn-search {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 !important;
}

.czn-search input[type="search"] {
  margin: 0 !important;
  height: 44px;
  line-height: 44px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

.czn-search button {
  margin: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

/* Standard content pages */
.czn-content-shell .content-area,
.czn-content-shell .site-main {
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
}

.czn-content-shell .site-main > h1:first-child,
.czn-content-shell .entry-header:first-child {
  margin-top: 0;
}

/* WooCommerce: comfortable catalog width and spacing */
.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
  margin-bottom: 28px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 24px;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Product detail is maintained in assets/css/shop.css. */

/* Cart / checkout */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header,
.woocommerce-account .entry-header {
  margin-bottom: 24px;
}

.woocommerce table.shop_table,
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout,
.woocommerce-MyAccount-content {
  font-size: .95rem;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 6px;
}

/* Responsive shop */
@media (max-width: 1180px) {
  .czn-header__inner {
    grid-template-columns: 220px minmax(260px, 1fr) auto;
  }

  .czn-nav .menu {
    gap: 20px;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .czn-header__actions {
    min-height: 72px;
  }

  .czn-nav > .menu,
  .czn-nav .menu {
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .czn-nav .menu > li > a {
    min-height: 0;
    padding: 13px 0 !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .czn-content-shell {
    width: min(calc(100% - 30px), var(--czn-wide));
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   v1.0.2 – inline SVG icons
   ========================================================= */
.czn-svg-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:1.35em;height:1.35em;color:currentColor;vertical-align:-.18em}
.czn-svg-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.czn-svg-icon--small{width:14px;height:14px;margin-right:6px;vertical-align:-2px}
.czn-svg-icon--feature{width:34px;height:34px;color:var(--czn-ink)}
.czn-svg-icon--contact{width:19px;height:19px;color:var(--czn-red);margin-top:1px}
.czn-svg-icon--benefit{width:30px;height:30px;color:var(--czn-ink)}
.czn-svg-icon--arrow{width:16px;height:16px}
.czn-search .czn-svg-icon{width:18px;height:18px}
.czn-cart .czn-svg-icon{width:24px;height:24px}
.czn-mobile-toggle .czn-svg-icon{width:24px;height:24px}
.czn-topbar__item{display:inline-flex;align-items:center}
.czn-feature{grid-template-columns:34px 1fr}
.czn-contact-list li{grid-template-columns:20px 1fr}
.czn-benefit-list li{grid-template-columns:32px 1fr}

@media (max-width: 980px) {
    .czn-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .czn-category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .czn-hero__features {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* v1.0.3: keep later desktop header rules from overriding mobile layout. */
@media (max-width: 1180px) {
    .czn-header .czn-search { display: none; }
}
@media (max-width: 980px) {
    .czn-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
    .czn-nav { grid-column: 1 / -1; grid-row: 2; }
}

/* Reversible catalog display; server-side purchase checks live in inc/catalog-mode.php. */
body.czn-catalog-mode .czn-cart,
body.czn-catalog-mode .single_add_to_cart_button,
body.czn-catalog-mode .woocommerce-variation-add-to-cart,
body.czn-catalog-mode .stock,
body.czn-catalog-mode .woocommerce-variation-availability,
body.czn-catalog-mode .widget_shopping_cart,
body.czn-catalog-mode .wp-block-woocommerce-mini-cart,
body.czn-catalog-mode .wp-block-woocommerce-customer-account,
body.czn-catalog-mode .storefront-handheld-footer-bar .cart,
body.czn-catalog-mode .storefront-handheld-footer-bar .my-account { display: none; }
.czn-catalog-search { display: none; }
.czn-search, .czn-catalog-search { position: relative; }
.czn-header .czn-suggest { position: absolute; top: calc(100% + 6px); right: 0; width: 380px; max-width: calc(100vw - 30px); background: #fff; color: var(--czn-ink); border: 1px solid var(--czn-line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100; }
.czn-header .czn-suggest[hidden] { display: none; }
.czn-header .czn-suggest ul { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.czn-header .czn-suggest li { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; border-bottom: 1px solid var(--czn-line); min-height: 64px; }
.czn-header .czn-suggest li:hover, .czn-header .czn-suggest li[aria-selected="true"] { background: var(--czn-soft); }
.czn-header .czn-suggest img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 52px; }
.czn-header .czn-suggest-text { min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.czn-header .czn-suggest-text small { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.czn-header .czn-suggest-message { margin: 0; padding: 12px; font-size: 12px; line-height: 1.4; }
.czn-header .czn-catalog-search .czn-suggest { left: 0; right: auto; width: 100%; }
@media (max-width: 1180px) {
  .czn-catalog-search { display: flex; gap: 8px; margin-bottom: 16px; }
  .czn-catalog-search input[type="search"] { min-width: 0; flex: 1; width: 100%; min-height: 44px; font-size: 16px; border: 1px solid var(--czn-line); background: #fff; box-shadow: none; }
  .czn-catalog-search button { background: var(--czn-red); color: #fff; padding: 10px 16px; }
}
