/* CrazyTatry: homepage and size customizations rolled back; category/product UX retained. */
:root { --ct-ux-ink:#1b1212; --ct-ux-accent:#8673b3; --ct-ux-line:#ded8e8; --ct-ux-soft:#f7f4fb; }

/* Point 3: show the original full name. No renaming or colour grouping. */
body.type-category .products .p-in a.name,
body.type-category .products [data-testid="productCardName"] {
  display:block !important; height:auto !important; max-height:none !important;
  overflow:visible !important; white-space:normal !important; text-overflow:clip !important;
  -webkit-line-clamp:unset !important; line-clamp:unset !important;
  -webkit-box-orient:initial !important; word-break:normal; overflow-wrap:anywhere;
}

/* Product details: retain the native description, price, variants, and both header positions. */
body.type-product .p-detail .p-detail-inner-header h1,
body.type-product .p-detail .p-detail-inner-header-mobile h1,
body.type-product .p-detail .p-detail-inner-header-mobile .h1 { line-height:1.18; }
body.type-product .p-detail .p-data-wrapper > .p-short-description {
  margin:12px 0; padding:14px 16px; background:var(--ct-ux-soft);
  border:1px solid var(--ct-ux-line); border-radius:12px; font-size:15px; line-height:1.55;
}
body.type-product .p-detail .p-data-wrapper > .p-short-description p { margin:0; }
body.type-product .p-detail .p-data-wrapper > .p-short-description p + p { margin-top:8px; }
body.type-product .p-detail .ct-ux-product-advice { margin:0 0 12px; font-size:14px; line-height:1.5; }
body.type-product .p-detail .ct-ux-product-advice a { display:inline-flex; align-items:center; min-height:44px; font-weight:700; }

/* Same alignment for both native headers; CSS alone works even if JS does not run. */
body.type-product .p-detail .ratings-and-brand {
  display:flex !important; align-items:center !important; justify-content:flex-start !important;
  flex-direction:row !important; flex-wrap:wrap !important; gap:8px 18px; margin:10px 0 14px; min-width:0; text-align:left !important;
}
body.type-product .p-detail .ratings-and-brand > .stars-wrapper {
  display:flex !important; align-items:center !important; justify-content:flex-start !important; flex-direction:row !important; flex-wrap:wrap; gap:6px 8px; text-align:left !important;
  float:none !important; flex:0 1 auto; min-width:0; width:auto !important; max-width:100%;
  margin:0 !important; padding:8px 10px !important; box-sizing:border-box; line-height:1.4;
}
body.type-product .p-detail .ratings-and-brand > .brand-wrapper {
  display:flex !important; align-items:center !important; justify-content:flex-start !important; flex-direction:row !important; flex-wrap:wrap; gap:0 4px; text-align:left !important;
  float:none !important; flex:0 1 auto; min-width:0; max-width:100%;
  margin:0 !important; padding:8px 0 !important; line-height:1.4; font-size:13px;
}
body.type-product .p-detail .ratings-and-brand .stars {
  display:inline-flex; align-items:center; flex:0 0 auto; margin:0 !important; line-height:1;
}
body.type-product .p-detail .ratings-and-brand .stars-label { margin:0 !important; font-size:13px; line-height:1.4; }
body.type-product .p-detail .ratings-and-brand .js-ratingDialogTrigger {
  float:none !important; margin:0 !important; max-width:100%; padding:2px 0 !important;
  min-height:0; font-size:13px; line-height:1.4; white-space:normal; text-align:left;
}
body.type-product .p-detail .ratings-and-brand > .ct-ux-unrated {
  background:transparent !important; border:0 !important; box-shadow:none !important; padding:8px 0 !important;
}
body.type-product .p-detail .ratings-and-brand .ct-ux-unrated .stars { opacity:.5; }

@media (max-width:767px) {
  body.type-category .products .p-in a.name { font-size:14px !important; line-height:1.35 !important; min-height:3.9em; margin-bottom:8px; }
  body.type-category .products [data-testid="productCardName"] { font-size:inherit !important; line-height:inherit !important; }

  /* Hide forms only after JS has added a working toggle. Native filter inputs stay put. */
  body.ct-ux-enabled.type-category #filters #category-filter-hover { display:block !important; }
  body.ct-ux-enabled.type-category #filters .filter-section-button { display:none; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-group { display:block !important; border-top:1px solid var(--ct-ux-line); margin:0; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-group > h4 { margin:0; padding:0; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-group > h4 > span { display:none; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-group:not(.ct-ux-open) > form { display:none; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-toggle { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:48px; text-align:left; padding:12px 0; border:0; background:transparent; color:var(--ct-ux-ink); font:inherit; font-weight:800; cursor:pointer; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-toggle::after { content:"+"; font-size:22px; }
  body.ct-ux-enabled.type-category #filters .ct-ux-open .ct-ux-filter-toggle::after { content:"−"; }
  body.ct-ux-enabled.type-category #filters .filter-label { padding-top:7px; padding-bottom:7px; line-height:1.4; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-selected { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-selected:empty { display:none; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-selected span { border:1px solid #c6b9db; border-radius:6px; padding:5px 8px; background:#f2edf8; font-size:13px; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-footer { padding-top:12px; }
  body.ct-ux-enabled.type-category #filters .ct-ux-filter-back { display:flex; justify-content:center; align-items:center; width:100%; min-height:48px; padding:10px; background:var(--ct-ux-accent); color:#fff; border-radius:8px; font-weight:800; text-decoration:none; }
  body.type-product .p-detail .p-detail-inner-header h1,
  body.type-product .p-detail .p-detail-inner-header-mobile h1,
  body.type-product .p-detail .p-detail-inner-header-mobile .h1 { font-size:26px; margin-bottom:10px; padding-bottom:0; }
  body.type-product .p-detail .p-data-wrapper > .p-short-description { margin:10px 0; padding:12px; font-size:14px; }
  body.type-product .p-detail .ratings-and-brand { gap:4px 14px; }
  body.type-product .p-detail .ratings-and-brand .ct-ux-unrated .stars { display:none !important; }
  body.type-product .p-detail .ratings-and-brand > .stars-wrapper,
  body.type-product .p-detail .ratings-and-brand > .brand-wrapper { padding-top:4px !important; padding-bottom:4px !important; }
}
@media (min-width:768px) {
  body.ct-ux-enabled.type-category .ct-ux-filter-toggle,
  body.ct-ux-enabled.type-category .ct-ux-filter-selected,
  body.ct-ux-enabled.type-category .ct-ux-filter-footer { display:none; }
}
