/* ============================================
   Postep Theme CSS
   Based on Angular front_app design specs
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --postep-red: #f2544a;
  --postep-dark: #0D0F12;
  --postep-black: #000;
  --postep-white: #fff;
  --postep-bg-light: #fafafa;
  --postep-gray: #D1D1D1;
  --postep-gray-dark: #959595;
  --postep-border: #c4c4c4;
  --postep-border-light: #e1e1e1;
  --postep-font: "Montserrat", sans-serif;
  --postep-content-max-width: 100%;
}

/* --- Responsive content max-width (Tailwind-inspired breakpoints) --- */
@media (min-width: 1280px) { :root { --postep-content-max-width: 1280px; } }
@media (min-width: 1536px) { :root { --postep-content-max-width: 1440px; } }

/* --- Fonts --- */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--postep-font);
  overflow-x: hidden;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--postep-black);
  background: var(--postep-white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
.container { max-width: 1420px; margin: 0 auto; padding: 0 16px; }

/* --- Bootstrap 5 Grid (minimal) --- */
.row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
.row > * { padding-right: 12px; padding-left: 12px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-3 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 100%; max-width: 100%; }
.col-md-9 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 860px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}

/* --- Utilities --- */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-xl-none { display: block !important; }
.d-xl-flex { display: none !important; }
@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-flex { display: flex !important; }
}
.text-center { text-align: center; }
.ps-0 { padding-left: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.no-print { }
@media print { .no-print { display: none !important; } }
.print-only { display: none; }
@media print { .print-only { display: block !important; } }
.hidden-sm-down { display: block !important; }
.hidden-md-up { display: none !important; }
.hidden-xs-up { display: none !important; }
@media (max-width: 860px) {
  .hidden-sm-down { display: none !important; }
  .hidden-md-up { display: block !important; }
}
.float-xs-right { float: right; }
.text-xs-right { text-align: right; }
.text-sm-center { text-align: center; }
.clearfix::after { content: ''; display: table; clear: both; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 8px 16px; border: none; cursor: pointer; font-family: var(--postep-font); font-size: 14px; font-weight: 600; }
.btn-check-offer {
  display: inline-block;
  width: 198px;
  height: 50px;
  border: 3px solid var(--postep-white);
  border-radius: 4px;
  color: var(--postep-white);
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s;
}
.btn-check-offer:hover {
  background: var(--postep-red);
  border-color: var(--postep-red);
  color: var(--postep-white);
}

/* === WELCOME BAR === */
.welcome-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: var(--postep-dark);
  color: var(--postep-white);
  font-size: 14px;
  font-weight: 400;
  padding: 10px;
  line-height: 21px;
  text-align: center;
  opacity: 0.5;
}
/* === TOP BAR (regular pages) === */
.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--postep-content-max-width);
  margin: 0 auto;
  padding: 74px 16px 0 16px;
  background: var(--postep-white);
  position: relative;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
}
.top-bar nav { margin-left: auto; }
.top-bar .image-logo { height: 32px; }
.top-bar .desktop-navigation-link { color: var(--postep-black); }
.top-bar .desktop-login-link {
  border: 1px solid #d1d5db;
  padding: 9px 30px;
  border-radius: 6px;
  user-select: none;
  background-color: transparent;
  display: inline-block;
  box-sizing: border-box;
}
.top-bar .desktop-login-link:hover {
  background: var(--postep-red);
  border-color: var(--postep-red);
  color: var(--postep-white);
  cursor: pointer;
}

/* === TOP BAR (home page - overlay on hero) === */
body#index #header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.top-bar-main-page {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--postep-content-max-width);
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 74px 16px 0 16px;
  box-sizing: border-box;
  z-index: 100;
  width: 100%;
  color: white;
}
.top-bar-main-page nav { margin-left: auto; }
.top-bar-main-page .image-logo { height: 32px; }
.top-bar-main-page .desktop-navigation-link { color: var(--postep-white); }
.top-bar-main-page .desktop-login-link {
  border: 1px solid #d1d5db;
  padding: 9px 30px;
  border-radius: 6px;
  user-select: none;
  background-color: transparent;
  display: inline-block;
  box-sizing: border-box;
}
.top-bar-main-page .desktop-login-link:hover {
  background: var(--postep-red);
  border-color: var(--postep-red);
  color: var(--postep-white);
  cursor: pointer;
}

/* === NAVIGATION === */
.social-links {
  display: flex;
  gap: 15px;
  margin-left: 30px;
  align-items: center;
}
/* ELCIA/ProDevis banner (French only) */
.elcia-container { display: none; align-items: center; margin-left: 20px; }
.elcia-container img { max-height: 61px; }
@media (min-width: 1200px) {
  .elcia-container { display: flex; }
}
@media (min-width: 1200px) and (max-width: 1400px) {
  .elcia-container ~ nav .desktop-navigation { column-gap: 25px; }
}
.desktop-navigation {
  display: flex;
  column-gap: 48px;
  height: min-content;
  align-items: center;
}
nav.no-print {
  display: flex;
  align-items: center;
}
.desktop-navigation-link {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  position: relative;
  text-align: center;
  transition: all 0.2s;
  display: inline-block;
  white-space: nowrap;
}
.desktop-navigation-link-active::after {
  position: absolute;
  content: "";
  background-color: var(--postep-red);
  width: 10px;
  height: 10px;
  bottom: -30px;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: default;
  box-shadow: 0px 1px 14px #F2544A;
}
.fav-header-wrapper {
  position: relative;
  width: 65px;
  height: 61px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.heart-container {
  height: 43px;
  width: 48px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d1d5db;
}
.fav-products-count-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background-color: var(--postep-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-products-count {
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  color: var(--postep-white);
}

/* Language Selector */
.language-selector-wrapper { position: relative; }
.language-selector-toggle {
  width: 50px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--postep-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 60px;
  z-index: 200;
  padding: 8px 0;
}
.language-dropdown.open { display: block; }
.language-dropdown li a {
  display: block;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--postep-black);
}
.language-dropdown li a:hover { background: var(--postep-bg-light); }

/* === MOBILE MENU === */
.mobile-menu-toggle { display: flex; align-items: center; margin-left: auto; }
.mobile-menu-toggle img { width: 28px; height: 28px; }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}
.mobile-menu-overlay.open { display: flex; }

.mobile-menu-content {
  background: var(--postep-white);
  width: 100%;
  max-width: 400px;
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.mobile-menu-logo img { height: 32px; width: auto; }
.mobile-menu-header #mobile-menu-close img { width: 24px; height: 24px; cursor: pointer; }

.mobile-nav-list li { border-bottom: 1px solid var(--postep-border-light); }
.mobile-nav-list li a {
  display: block;
  padding: 16px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--postep-black);
}
.mobile-nav-list li a:hover { color: var(--postep-red); }

.menu-language-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 12px;
  border-bottom: 1px solid var(--postep-border-light);
}
.menu-language-title { font-size: 16px; font-weight: 600; }
.menu-language-list { display: flex; gap: 12px; }
.menu-language-list a { font-weight: 600; font-size: 14px; color: var(--postep-gray-dark); }
.menu-language-list a.active { color: var(--postep-red); }

.main-menu-view { display: flex; flex-direction: column; flex: 1; }
.mobile-social-links { display: flex; gap: 20px; margin-top: auto; padding: 24px 12px; justify-content: center; }

.category-menu-header {
  margin-bottom: 16px;
}
.category-menu-header a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--postep-black);
}
.category-menu-header img { width: 20px; }

/* === MOBILE CATEGORY TREE === */
.mobile-category-tree { padding: 0; list-style: none; margin: 0; }
.mobile-tree-item { list-style: none; }

.mobile-tree-row {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--postep-border-light);
}

.mobile-tree-link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--postep-black);
  flex: 1;
}
.mobile-tree-link:hover { color: var(--postep-red); }

.mobile-tree-toggle {
  order: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: -12px;
}
.mobile-tree-toggle::after {
  content: '';
  border: solid #3f3f46;
  border-width: 0 2px 2px 0;
  display: block;
  width: 8px;
  height: 8px;
  transform: rotate(-45deg);
  transition: transform 200ms ease-in-out;
}
.mobile-tree-toggle.open::after {
  transform: rotate(45deg);
}

.mobile-tree-children {
  padding: 0;
  margin: 0 0 0 16px;
  list-style: none;
}
.mobile-tree-children.collapsed { display: none; }

.mobile-tree-children .mobile-tree-link {
  font-weight: 500;
  font-size: 15px;
  padding: 12px 0;
}
.mobile-tree-children .mobile-tree-children .mobile-tree-link {
  font-weight: 400;
  font-size: 14px;
  padding: 10px 0;
}
.mobile-tree-children .mobile-tree-children .mobile-tree-children .mobile-tree-link {
  font-weight: 400;
  font-size: 13px;
  padding: 8px 0;
}

/* === HERO SECTION (home page) === */
.hero-contact-wrapper { position: relative; }
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/main-page-hero.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}
.hero-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: min-content auto;
  height: 100%;
  max-width: var(--postep-content-max-width);
  margin: 0 auto;
  padding: 0 16px;
  color: var(--postep-white);
}
.hero-title {
  margin-top: 20rem;
  margin-bottom: 2rem;
  position: relative;
  width: fit-content;
}
.hero-title .hero-subtitle {
  font-size: 19px;
  font-weight: 400;
  line-height: 28.5px;
  margin-bottom: 8px;
}
.hero-title h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 38.4px;
}
.hero-red-rect {
  position: absolute;
  right: -80px;
  top: -40px;
  width: 144px;
  height: 188px;
  z-index: -1;
}
.hero-details {
  display: grid;
  align-content: space-between;
  padding-bottom: 2rem;
}
.hero-details .btn-check-offer { margin-bottom: 24px; }
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-features li {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.hero-features li:empty,
.hero-features li:has(> p:empty:only-child) { display: none; }
@media (max-width: 860px) {
  .hero-section { min-height: 680px; }
  .hero-title { margin-top: 200px; }
  .hero-title h2 { font-size: 24px; }
  .hero-features { flex-direction: column; gap: 12px; }
}

/* === HOME CONTACT BLOCK (floating red box on hero) === */
.home-contact-block {
  position: absolute;
  right: 0;
  bottom: 40px;
  z-index: 50;
  background: var(--postep-red);
  color: var(--postep-white);
  padding: 24px 28px;
  width: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 4px 54px rgba(0, 0, 0, 0.55);
}
.home-contact-cta {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--postep-white);
  margin-bottom: 12px;
  text-decoration: none;
}
.home-contact-cta:hover { text-decoration: underline; }
.home-contact-details { display: flex; flex-direction: column; }
.home-contact-phones p { margin: 0; font-size: 18px; font-weight: 400; color: var(--postep-white); }
.home-contact-phones a { color: var(--postep-white); text-decoration: none; }
.home-contact-phones a:hover { text-decoration: underline; }
.home-contact-info { font-size: 26px; }
.home-contact-info a { color: var(--postep-white); text-decoration: none; }
.home-contact-info a:hover { text-decoration: underline; }
.home-contact-icon-link {
  position: absolute;
  right: 32px;
  bottom: 32px;
  color: var(--postep-white);
  text-decoration: none;
  font-size: 0;
  transition: all 0.3s;
}
.home-contact-icon-link:hover {
  cursor: pointer;
  transform: scale(1.5);
}
.home-contact-icon-link svg path { stroke: var(--postep-white); }
@media (max-width: 860px) {
  .home-contact-block {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    padding: 16px 5%;
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .home-contact-cta {
    font-size: 18px;
    line-height: 43px;
    margin-bottom: 4px;
  }
  .home-contact-phones p,
  .home-contact-info { font-size: 16px; line-height: 28px; }
  .home-contact-phones p { margin: 0; }
  .home-contact-icon-link { display: none; }
}

/* === CATEGORY SHOWCASE === */
.category-showcase { padding: 0 5%; max-width: 1200px; margin: 0 auto; }
.category-block { margin-top: 100px; margin-bottom: 40px; }
.category-block.first { margin-top: 120px; }
.category-content-container {
  display: flex;
  gap: 5rem;
  align-items: center;
}
.category-block.reverse .category-content-container { flex-direction: row-reverse; }
.category-text { flex: 1; min-width: 0; }
.category-name { font-size: 46px; font-weight: 700; line-height: 55.2px; margin-bottom: 20px; }
.category-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #333;
  margin-bottom: 24px;
}
.category-cta .btn-check-offer {
  color: var(--postep-black);
  border-color: var(--postep-black);
}
.category-cta .btn-check-offer:hover {
  color: var(--postep-white);
  border-color: var(--postep-red);
  background: var(--postep-red);
}
.category-image-side { flex: 1; position: relative; min-width: 0; }
.category-image-container { position: relative; max-width: 480px; padding: 24px; }
.category-block.reverse .category-image-container { margin-left: auto; }
.category-image { width: 100%; display: block; border-radius: 2px; filter: drop-shadow(0px 4px 34px rgba(0, 0, 0, 0.25)); }
.category-icon-overlay {
  width: 137px;
  height: 137px;
  background-color: #f2544a;
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.category-block.reverse .category-icon-overlay {
  left: 0;
}
.category-icon { max-width: 90px; max-height: 90px; }
.gray-frame {
  position: absolute;
  width: 168px;
  height: 220px;
  border: 21px solid #000;
  opacity: 0.05;
  top: -78px;
  z-index: -1;
}
.gray-frame.right { right: -70px; }
.gray-frame.left { left: -78px; }

.category-subcategory-links { margin-top: 32px; padding-top: 16px; }
.category-subcategory-links ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}
.category-subcategory-links li::before {
  content: '\2022';
  color: var(--postep-red);
  margin-right: 8px;
  font-weight: 700;
}
.category-subcategory-links li a {
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  color: var(--postep-black);
}
.category-subcategory-links li a:hover { color: var(--postep-red); }

@media (max-width: 860px) {
  .category-content-container { flex-direction: column-reverse !important; gap: 0; }
  .category-block { margin-top: 40px; }
  .category-block.first { margin-top: 20px; }
  .category-name { font-size: 28px; line-height: 34px; margin-bottom: 12px; }
  .category-text { padding: 16px 16px 0; }
  .category-image-container { padding: 0; width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
  .category-image { border-radius: 0; filter: none; }
  .gray-frame { display: none; }
  .category-subcategory-links { margin-top: 16px; padding-top: 8px; }
  .category-subcategory-links ul { grid-template-columns: 1fr; }
}

/* === PRODUCTS PAGE === */
body#module-pshowtheme-products #content-wrapper { flex: 0 0 100%; max-width: 100%; padding: 0; }
body#module-pshowtheme-products .container > .row { justify-content: center; }
.products-page .products-title {
  margin-top: 100px;
  padding: 0 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 46px;
  font-weight: 700;
  line-height: 55.2px;
}
.products-page .category-block { margin-top: 180px; margin-bottom: 60px; }
.products-page .category-block.first { margin-top: 100px; }
@media (max-width: 860px) {
  .products-page .products-title {
    margin-top: 40px;
    font-size: 28px;
    line-height: 34px;
    padding: 0 16px;
  }
  .products-page .category-block { margin-top: 40px; }
  .products-page .category-block.first { margin-top: 20px; }
}

/* === COMPANY INFO SECTION === */
.company-info-section {
  margin-top: 120px;
}
.company-info {
  background-image: url('../img/rectangle-10.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right;
  color: #fff;
  height: 692px;
  margin-bottom: 85px;
  display: grid;
  grid-template-columns: 4fr 3fr;
}
.company-info-content {
  padding-top: 110px;
  padding-left: 280px;
  padding-right: 6.5rem;
}
.company-info-content h3 {
  font-weight: 400;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 42px;
}
.company-info-content p {
  font-size: 16px;
  line-height: 28px;
  opacity: 0.85;
}
.company-info-content a {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  column-gap: 0.75rem;
  align-items: center;
}
.company-info-content .contact-link {
  margin-top: 27px;
  text-decoration: none;
  width: max-content;
  transition: all 0.2s;
}
.company-info-content .contact-link svg {
  opacity: 0.5;
  transition: all 0.2s;
}
.company-info-content .contact-link:hover {
  color: #fff;
  text-decoration: underline;
}
.company-info-content .contact-link:hover svg {
  opacity: 1;
}
.company-info-content a.btn {
  display: block;
  border-radius: 4px;
  border: 3px solid #fff;
  max-width: 328px;
  padding: 20px 35px;
  font-weight: bold;
  margin-top: 27px;
  color: #fff;
  transition: all 0.2s;
  text-decoration: none;
}
.company-info-content a.btn:hover {
  background: var(--postep-red);
  border-color: var(--postep-red);
}
.company-info-right-side {
  position: relative;
}
.company-image-container {
  position: absolute;
  right: 0;
  top: 148px;
  z-index: 10;
}
.company-image-container > img {
  width: 100%;
  max-height: 620px;
  filter: drop-shadow(0px 4px 64px rgba(0, 0, 0, 0.25));
}
.red-frame-container {
  height: 188px;
  width: 144px;
  border: 21px solid #F2544A;
  position: absolute;
  left: -70px;
  top: -78px;
  z-index: -1;
}

/* "Co nas wyróżnia?" — highlights below company info */
.company-highlights {
  display: flex;
  gap: 15px;
  margin-left: 240px;
  margin-right: 393px;
}
.company-highlights > svg {
  min-width: 20px;
  margin-top: 7px;
}
.company-highlights-info {
  line-height: 28px;
  margin-bottom: 85px;
}
.company-highlights-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
}
.company-highlights-info p {
  font-size: 16px;
  line-height: 28px;
  color: #555;
  margin: 0;
}
@media (max-width: 1420px) {
  .company-info {
    display: block;
    background-image: none;
    background-color: #000;
    height: auto;
    margin-bottom: 36px;
  }
  .company-info .company-info-content {
    padding: 43px 16px;
  }
  .company-info-right-side .company-image-container {
    position: relative;
    top: 0;
  }
  .company-info-right-side .company-image-container img {
    height: auto;
    position: relative;
    bottom: -4px;
  }
  .company-info-right-side .red-frame-container {
    display: none;
  }
  .company-highlights {
    margin: 0 16px 36px;
  }
}

/* === FOOTER === */
.footer-wrapper { background: var(--postep-bg-light); }
.footer { max-width: var(--postep-content-max-width); margin: 0 auto; padding: 60px 16px; }
.footer-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 70px;
}
.footer-category-header {
  font-size: 15px;
  font-weight: 700;
  line-height: 22.5px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}
.footer-category-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--postep-red);
}
.footer-subcategories li { margin-bottom: 8px; }
.footer-subcategories li a {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--postep-black);
}
.footer-subcategories li a:hover { color: var(--postep-red); }

.sub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--postep-content-max-width);
  margin: 0 auto;
  padding: 35px 16px;
  border-top: 1px solid var(--postep-border-light);
}
.sub-footer-info .small {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--postep-gray-dark);
}
.sub-footer-socials {
  display: flex;
  gap: 27px;
}
.sub-footer-socials a svg path { transition: fill 0.3s; }
.sub-footer-socials a:hover svg path { fill: var(--postep-red); }
.footer-chevron { display: none; }

@media (max-width: 1024px) {
  .footer-categories { grid-template-columns: repeat(4, 1fr); gap: 35px; }
}
@media (max-width: 860px) {
  .footer-wrapper { background: #fff; }
  .footer { padding: 0 0 0 0; }
  .footer-categories { grid-template-columns: 1fr; gap: 0; }
  .footer-category-item { border-top: 1px solid #c4c4c4; border-bottom: none; padding: 24px 0; }
  .footer-category-item:last-child { border-bottom: 1px solid #c4c4c4; }
  .footer-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-left: 24px;
    padding-right: 40px;
    margin-bottom: 0;
  }
  .footer-category-header::before { display: none; }
  .footer-chevron-down { display: block; }
  .footer-chevron-up { display: none; }
  .footer-category-item.open .footer-chevron-down { display: none; }
  .footer-category-item.open .footer-chevron-up { display: block; }
  .footer-subcategories { display: none; padding-left: 24px; }
  .footer-category-item.open .footer-subcategories { display: block; }
  .footer-subcategories li:first-child { padding-top: 24px; }
  .footer-subcategories li { padding-bottom: 25px; margin-bottom: 0; }
  .footer-subcategories li:last-child { padding-bottom: 0; }
  .sub-footer { flex-direction: row; padding: 35px 16px; }
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--postep-white);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 10000;
  max-width: 500px;
  width: 90%;
  text-align: center;
}
.cookie-popup .cookie-popup-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 16px;
}
.cookie-popup p { font-size: 13px; line-height: 1.6; margin-bottom: 24px; color: #333; }
.cookie-popup-buttons { display: flex; gap: 12px; justify-content: center; }
.btn-cookie-accept {
  background: var(--postep-red);
  color: var(--postep-white);
  padding: 10px 24px;
  border: 1px solid var(--postep-red);
  font-weight: 600;
  cursor: pointer;
}
.btn-cookie-decline {
  background: var(--postep-white);
  color: var(--postep-black);
  padding: 10px 24px;
  border: 1px solid var(--postep-black);
  font-weight: 600;
  cursor: pointer;
}

/* === MOBILE PARENT CATEGORY BACK LINK === */
.mobile-parent-category-link {
  display: none;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  background: var(--postep-white);
  border-bottom: 1px solid var(--postep-border-light);
}
@media (max-width: 1199px) {
  .mobile-parent-category-link { display: flex; }
}
.mobile-parent-back-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--postep-border-light);
  flex-shrink: 0;
  color: var(--postep-black);
}
.mobile-parent-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--postep-black);
}
.mobile-parent-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* === CATEGORY TITLE BANNER === */
.category-title-banner {
  background-image: url('../img/product-list-image.png');
  background-size: cover;
  background-position: center;
  height: 180px;
  color: var(--postep-white);
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 40px;
}
.category-title-banner-inner {
  display: flex;
  align-items: center;
  max-width: var(--postep-content-max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}
.category-title-banner .symbol-wrapper {
  margin: 40px 27px 0 0;
  max-width: 163px;
  max-height: 163px;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.category-title-banner .symbol {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0px 4px 54px rgba(0, 0, 0, 0.16);
}
.category-title-banner h1 {
  font-size: 46px;
  font-weight: 400;
  margin: 0;
  color: var(--postep-white);
}
@media (max-width: 1200px) {
  .category-title-banner h1 { font-size: 40px; }
}
@media (max-width: 1024px) {
  .category-title-banner h1 { font-size: 36px; }
}
@media (max-width: 1199px) {
  .category-title-banner { display: none; }
}
@media (max-width: 576px) {
  .category-title-banner .symbol-wrapper {
    max-width: 100px;
    max-height: 100px;
    margin: 20px 16px 0 16px;
  }
  .category-title-banner h1 { font-size: 24px; }
}

#js-product-list-header .h2,
#js-product-list-header h2 {
  font-size: 32px;
  font-weight: 500;
  margin: 16px 0 0;
}
.category-description-block {
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
#category-description h1 { display: none; }
#category-description .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-column-gap: 24px;
  grid-row-gap: 24px;
}
@media (max-width: 1400px) {
  #category-description .grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 1050px) {
  #category-description .grid { grid-template-columns: repeat(6, 1fr); }
}
#category-description .grid .column figure { text-align: center; margin: 0; }
#category-description .grid .column-1 { grid-column-end: span 1; }
#category-description .grid .column-2 { grid-column-end: span 2; }
#category-description .grid .column-3 { grid-column-end: span 3; }
#category-description .grid .column-4 { grid-column-end: span 4; }
#category-description .grid .column-5 { grid-column-end: span 5; }
#category-description .grid .column-6 { grid-column-end: span 6; }
#category-description .grid .column-7 { grid-column-end: span 7; }
#category-description .grid .column-8 { grid-column-end: span 8; }
#category-description .grid .column-9 { grid-column-end: span 9; }
#category-description .grid .column-10 { grid-column-end: span 10; }
#category-description .grid .column-11 { grid-column-end: span 11; }
#category-description .grid .column-12 { grid-column-end: span 12; }
#category-description .align-center { text-align: center; }
#category-description .align-left { text-align: left; }
#category-description .align-right { text-align: right; }
#category-description .align-justify { text-align: justify; }
#category-description .valign-top { align-items: start; }
#category-description .valign-middle { align-items: center; }
#category-description .valign-bottom { align-items: end; }
#category-description table { width: 100%; }
#category-description table td { padding: 0 15px; }
#category-description embed,
#category-description img,
#category-description object,
#category-description video { max-width: 100%; height: auto; }
#category-description img { cursor: pointer; }
#category-description hr {
  background: none; border: none;
  margin-top: 1.5em; margin-bottom: 1.5em; height: 10px;
}

/* === Description Image Zoom Modal === */
.desc-image-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: pointer;
}
.desc-image-modal-content {
  max-width: 90vw;
  max-height: 90vh;
}
.desc-image-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 5px;
}

/* === HIDE SUBCATEGORY BLOCKS === */
#subcategories { display: none !important; }

/* === SIDEBAR CATEGORY TREE === */
.block-categories { margin-bottom: 24px; }
.category-tree { padding: 0; margin: 0; list-style: none; }
.category-tree-item { margin: 0; padding: 0; }
.category-tree-row {
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  margin-left: 20px;
  border-bottom: 1px solid var(--postep-border-light);
}
.category-tree-toggle {
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  margin: auto 0;
  cursor: pointer;
  user-select: none;
  appearance: none;
  border: solid #3f3f46;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 5px;
  transform: rotate(-45deg);
  transition: transform 200ms ease-in-out;
  background: none;
}
.category-tree-toggle.open {
  transform: rotate(45deg);
}
.category-tree-link {
  display: block;
  margin: 6px 12px 6px 20px;
  padding: 5px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #212529;
  cursor: pointer;
  text-transform: capitalize;
}
.category-tree-link::before { display: none; }
.category-tree-link:hover { color: var(--postep-red); text-decoration: underline; }

/* Separator lines are on .category-tree-row, not the item */

/* Leaf toggle — invisible but takes up space for alignment */
.category-tree-toggle.leaf {
  visibility: hidden;
}

/* Active category (current page) — only color, font-weight from nesting level */
.category-tree-item.current > .category-tree-row .category-tree-link {
  color: var(--postep-red);
}
/* Active category WITH children — red chevron */
.category-tree-item.current > .category-tree-row .category-tree-toggle:not(.leaf) {
  visibility: visible;
  border-color: var(--postep-red);
}
/* Active category WITHOUT children — red dot replaces chevron */
.category-tree-item.current > .category-tree-row .category-tree-toggle.leaf {
  visibility: visible;
  border: none;
  width: 7px;
  height: 7px;
  background: var(--postep-red);
  border-radius: 50%;
  transform: none;
  padding: 0;
  left: 0;
}

/* Nesting levels */
.category-tree-children {
  padding: 0;
  margin: 0 0 0 20px;
  list-style: none;
}
/* Level 1 children (e.g. "Stolarka Okienna PVC") */
.category-tree-children .category-tree-link {
  font-weight: 600;
  font-size: 16px;
}
/* Level 2 children (e.g. "Okucia Okienne") */
.category-tree-children .category-tree-children .category-tree-link {
  font-weight: 500;
  font-size: 14px;
}
/* Level 3 children (e.g. "Winkhaus activPilot...") */
.category-tree-children .category-tree-children .category-tree-children .category-tree-link {
  font-weight: 400;
  font-size: 13px;
}

/* Collapsed branches */
.category-tree-children.collapsed { display: none; }

/* === PRODUCT PAGE — catalog mode (hide prices, cart, reassurance) === */
.product-prices { display: none !important; }
.product-add-to-cart .qty,
.product-add-to-cart .add-to-cart,
.product-add-to-cart .product-quantity { display: none !important; }
.product-add-to-cart .product-minimal-quantity { display: none !important; }
.blockreassurance_product { display: none !important; }
.product-flags .discount { display: none !important; }
.sort-by-row a[href*="price"] { display: none !important; }
.product-miniature .product-price-and-shipping { display: none !important; }

/* === PRODUCT PAGE — layout (Angular port) === */

/* Grid layout: sidebar + content */
body#product .container > .row {
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 3rem;
  align-items: flex-start;
}
body#product #left-column { flex: none; max-width: none; padding: 0 12px; }
body#product #content-wrapper { flex: none; max-width: none; padding: 0 12px; margin-bottom: 60px; }
@media (max-width: 860px) {
  body#product .container > .row { display: flex; flex-wrap: wrap; }
  body#product #left-column { display: none; }
  body#product #content-wrapper { flex: 0 0 100%; max-width: 100%; }
}

/* Category banner heading (not h1, product name is h1) */
.category-banner-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--postep-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (min-width: 860px) { .category-banner-heading { font-size: 36px; } }

/* Product title row */
.product-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.product-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--postep-black);
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.product-back-btn:hover { color: var(--postep-red); }
.product-page-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}
.product-add-to-favourite { margin-left: auto; flex-shrink: 0; }
.product-add-to-favourite .wishlist-button-add { background: none; border: none; cursor: pointer; }
@media (min-width: 860px) { .product-page-name { font-size: 46px; } }

/* Main product info (flex row) */
.main-product-info {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}
@media (min-width: 860px) {
  .main-product-info {
    flex-direction: row;
    column-gap: 34px;
    align-items: flex-start;
    margin-top: 54px;
  }
}

/* Image slider */
.product-image-slider {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
@media (min-width: 860px) {
  .product-image-slider { min-width: 250px; max-width: 250px; margin: 0; flex-shrink: 0; }
}
@media (min-width: 992px) {
  .product-image-slider { min-width: 300px; max-width: 300px; }
}
@media (min-width: 1200px) {
  .product-image-slider { min-width: 600px; max-width: 600px; }
}
.product-slider-container { position: relative; border-radius: 4px; overflow-x: hidden; height: 350px; }
@media (min-width: 860px) { .product-slider-container { height: 250px; } }
@media (min-width: 992px) { .product-slider-container { height: 300px; } }
@media (min-width: 1200px) { .product-slider-container { height: 600px; } }
.product-slider-viewport {
  display: flex;
  transition: transform 0.3s ease;
}
.product-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 350px;
  position: relative;
}
@media (min-width: 860px) { .product-slide { height: 250px; } }
@media (min-width: 992px) { .product-slide { height: 300px; } }
@media (min-width: 1200px) { .product-slide { height: 600px; } }
.product-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--postep-border-light);
  border-radius: 50%;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}
.slider-arrow:hover { background: var(--postep-white); border-color: var(--postep-red); }
.slider-arrow svg { stroke: var(--postep-black); }
.slider-arrow:hover svg { stroke: var(--postep-red); }
.slider-prev { left: 8px; }
.slider-next { right: 8px; }

/* Caption overlay on slide image */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 8px;
  max-width: 80%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--postep-black);
  background: rgba(255, 255, 255, 0.87);
  border-radius: 0 4px 0 0;
  padding: 8px 16px;
  pointer-events: none;
  z-index: 2;
}

/* Product controls (right side) */
.product-controls {
  width: 100%;
  margin-top: 20px;
}
@media (min-width: 860px) {
  .product-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 350px;
    margin-top: 0;
    flex: 1;
  }
}
.product-short-description {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.product-controls-bottom {
  width: 100%;
}
/* Login prompt - tooltip bubble above Downloads button */
.product-login-prompt {
  position: relative;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: var(--postep-black);
  border-radius: 6px;
  text-align: center;
  width: calc(50% - 10px);
}
.product-login-prompt::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 24px;
  width: 15px;
  height: 15px;
  background-color: var(--postep-black);
  transform: rotate(45deg);
  border-radius: 2px;
}
.product-login-prompt a {
  color: var(--postep-white);
  font-size: 12px;
  text-decoration: none;
}
.product-login-prompt a strong {
  color: var(--postep-white);
  text-decoration: none;
}
.product-login-prompt a:hover { opacity: 0.85; }
@media (max-width: 1024px) {
  .product-login-prompt { width: 100%; }
}

/* Action buttons */
.product-buttons-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}
@media (max-width: 1024px) {
  .product-buttons-row { flex-direction: column; gap: 10px; }
}
.btn-download, .btn-get-offer {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: var(--postep-font);
  border-radius: 4px !important;
  -webkit-appearance: none;
}
.btn-download {
  background: var(--postep-black);
  color: var(--postep-white);
}
.btn-download.disabled {
  background: #555;
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-get-offer {
  background: var(--postep-red);
  color: var(--postep-white);
}
.btn-get-offer:hover { opacity: 0.9; }

/* Thumbnail grid */
.product-thumbnails-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}
@media (max-width: 860px) {
  .product-thumbnails-grid.hidden-sm-down { display: none !important; }
}
.product-thumb {
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
}
.product-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.product-thumb.selected,
.product-thumb:has(img.selected) { border-color: var(--postep-red); }
.product-thumb:hover { border-color: var(--postep-red); }

/* === PRODUCT TABS === */
.postep-product-tabs { margin-top: 60px; }
.postep-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #e6e6e6;
}
.postep-tab-item {
  flex: 1;
  padding: 10px 15px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  text-transform: capitalize;
  border-radius: 5px 5px 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: background-color 0.15s;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.postep-tab-item:hover { background: #f6f6f6; }
.postep-tab-item.active {
  background: var(--postep-black);
  color: var(--postep-white);
  border-color: var(--postep-black);
}
.postep-tabs-content { margin-top: 45px; }
.postep-tab-panel { display: none; }
.postep-tab-panel.active { display: block; }

/* Mobile tabs */
.postep-product-tabs-mobile { margin-top: 30px; }
.postep-mobile-tab-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--postep-border);
  border-radius: 4px;
  background: var(--postep-white);
  font-family: var(--postep-font);
  cursor: pointer;
}
.postep-mobile-tab-content { margin-top: 20px; }

/* Features list */
.product-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-row {
  display: flex;
  padding: 12px 16px;
  border: none;
}
.feature-row.grey-bg { background: rgba(174, 186, 196, 0.09); }
.feature-name {
  flex: 0 0 30%;
  font-weight: 700;
  text-align: right;
  padding-right: 16px;
  text-transform: capitalize;
}
.feature-value { flex: 1; }
@media (max-width: 860px) {
  .feature-row { flex-direction: column; padding: 10px 0; }
  .feature-name { text-align: left; margin-bottom: 4px; flex: none; }
  .feature-row.grey-bg { background: transparent; }
}

/* Related subcategories in tabs */
.related-subcategories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
}
@media (max-width: 1420px) {
  .related-subcategories-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
@media (max-width: 760px) {
  .related-subcategories-list {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 27px;
  }
}
.related-subcategory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: var(--postep-black);
  transition: color 0.3s ease-in-out;
}
.related-subcategory-item:hover { color: var(--postep-red); }
.related-subcategory-item:hover .related-subcat-image {
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.25));
}
.related-subcategory-item:hover .related-subcat-dot {
  background-color: var(--postep-red);
}
.related-subcat-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 350px;
  object-fit: contain;
  border-radius: 4px;
  transition: filter 0.3s ease-in-out;
}
.related-subcat-name-wrapper {
  display: flex;
  align-items: center;
  margin-top: 16px;
  gap: 7px;
  width: 100%;
}
.related-subcat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9c9c9;
  flex-shrink: 0;
  transition: background-color 0.3s ease-in-out;
}
.related-subcat-name {
  width: 100%;
  text-align: start;
  font-size: 14px;
}

/* === MODALS (offer, download) === */
.postep-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}
.postep-modal-overlay.open { display: flex; }
.postep-modal {
  background: var(--postep-white);
  max-width: 500px;
  width: 90%;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.postep-modal-header {
  text-align: center;
  padding: 24px 24px 0;
}
.postep-modal-header h6 { margin: 0; font-size: 18px; font-weight: 600; }
.postep-modal-header small { font-weight: 400; color: var(--postep-gray-dark); }
.postep-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: var(--postep-gray-dark);
}
.postep-modal-close:hover { color: var(--postep-black); }
.postep-modal-body { padding: 16px 24px 0; }
.postep-modal-body .form-group { margin-bottom: 12px; }
.postep-modal-body label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.postep-modal-body .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--postep-border);
  border-radius: 4px;
  font-family: var(--postep-font);
  font-size: 14px;
  box-sizing: border-box;
}
.postep-modal-body .form-control:focus { outline: none; border-color: var(--postep-red); }
.postep-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-send-offer {
  width: 100%;
  padding: 12px;
  background: var(--postep-red);
  color: var(--postep-white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--postep-font);
  cursor: pointer;
}
.btn-send-offer:hover { opacity: 0.9; }
.btn-cancel-offer {
  width: 100%;
  padding: 12px;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--postep-font);
  cursor: pointer;
}
.btn-cancel-offer:hover { background: #e5e5e5; }

/* Attachment list */
.attachment-list { list-style: none; padding: 0; margin: 0; }
.attachment-item { padding: 10px 0; border-bottom: 1px solid var(--postep-border-light); }
.attachment-item:last-child { border-bottom: none; }
.attachment-item a { color: var(--postep-black); text-decoration: none; font-size: 14px; }
.attachment-item a:hover { color: var(--postep-red); }
.attachment-item small { color: var(--postep-gray-dark); }

/* Hide unwanted PS elements on product page */
body#product .product-flags { display: none !important; }
body#product .product-comment-list-item,
body#product .product-comments,
body#product #product-comments-list-header,
body#product .product-comment-modal { display: none !important; }
body#product .social-sharing { display: none !important; }

/* === PRODUCTS SELECTION BAR === */
.products-selection { margin-top: 38px; margin-bottom: 24px; overflow: visible; }
.products-selection-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.products-selection-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.total-products { display: none !important; }
body#category .products-sort-order { display: none !important; }
body#category .sort-by { display: none !important; }
.btn-view-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--postep-font);
  color: var(--postep-black);
  transition: border-color 0.2s;
  min-height: 42px;
}
.btn-view-toggle:hover { border-color: var(--postep-red); color: var(--postep-red); }
.btn-view-toggle.active { border-color: var(--postep-red); color: var(--postep-red); }
@media (max-width: 576px) {
  .view-toggle-label { display: none; }
}

/* === SORT DROPDOWN === */
.products-sort-order { position: relative; }
.products-sort-order .select-title {
  border: 1px solid var(--postep-border);
  padding: 6px 12px;
  font-size: 13px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--postep-font);
  font-weight: 600;
}
.products-sort-order .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  padding: 8px 0;
}
.products-sort-order.open .dropdown-menu { display: block; }
.products-sort-order .dropdown-menu a {
  display: block;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--postep-black);
}
.products-sort-order .dropdown-menu a:hover { background: var(--postep-bg-light); }

/* === LIST VIEW MODE === */
.products.list-view {
  grid-template-columns: 1fr;
  gap: 0;
}
.products.list-view .product-miniature-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin-bottom: 15px;
}
.products.list-view .thumbnail-container {
  flex: 0 0 162px;
  max-width: 162px;
  height: 100%;
}
.products.list-view .thumbnail-container img {
  height: 100%;
  min-width: 162px;
  max-width: 162px;
  object-fit: contain;
}
.products.list-view .product-description {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 48px;
}
.products.list-view .product-actions-mini {
  flex-direction: column-reverse;
  justify-content: center;
  height: 100%;
  margin-right: 32px;
}
@media (max-width: 860px) {
  .products.list-view .product-miniature-inner {
    height: auto;
    border: none;
    border-bottom: 1px solid #E1E1E1;
    border-radius: 0;
    padding-bottom: 14px;
    padding-top: 18px;
    margin: 0;
  }
  .products.list-view .thumbnail-container {
    flex: 0 0 164px;
    max-width: 164px;
  }
  .products.list-view .product-description {
    padding-left: 32px;
  }
}
@media (max-width: 576px) {
  .products.list-view .thumbnail-container {
    flex: 0 0 60px;
    max-width: 60px;
  }
  .products.list-view .thumbnail-container img {
    min-width: 60px;
    max-width: 60px;
    height: 60px;
  }
  .products.list-view .product-description {
    padding-left: 13px;
  }
}

/* === PRODUCT MINIATURE (listing card) === */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 0;
}
@media (max-width: 1200px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
.product-miniature {
  display: flex;
}
.product-miniature-inner {
  background: var(--postep-white);
  border: 1px solid var(--postep-border-light);
  border-radius: 8px;
  overflow: visible;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.product-miniature-inner .thumbnail-container { overflow: hidden; border-radius: 8px 8px 0 0; }
.product-miniature-inner .product-description {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-miniature-inner .product-actions-mini {
  margin-top: auto;
}
.product-miniature-inner:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.product-thumbnail {
  border-radius: 8px;
}
.product-thumbnail img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}
.product-description {
  padding: 11px 9px;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 19.5px;
  margin-bottom: 8px;
  text-transform: capitalize;
}
.product-title a { color: var(--postep-black); }
.product-title a:hover { color: var(--postep-red); }
.product-actions-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.products.subcategory-list { gap: 25px 24px; }
.subcategory-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  margin-bottom: 8px;
}
.btn-see-more {
  color: var(--postep-red);
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.btn-see-more:hover { text-decoration: underline; }
.wishlist-button-add {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 4px !important;
  font-size: 0;
  line-height: 0;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  box-shadow: none !important;
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
}
.wishlist-button-add svg { font-size: initial; }
.wishlist-button-add:hover { opacity: 1 !important; }
.wishlist-button-add:hover svg path { stroke: var(--postep-red); }
.wishlist-button-add.is-in-wishlist svg path { fill: var(--postep-red); stroke: var(--postep-red); }
.wishlist-button-add.is-in-wishlist:hover svg path { fill: none; stroke: var(--postep-red); }

/* Wishlist tooltip for non-logged-in users */
.wishlist-button-add[data-tooltip] { position: relative; cursor: default; }
.wishlist-button-add[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  right: -8px;
  background: var(--postep-dark);
  color: var(--postep-white);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: none !important;
}
.wishlist-button-add[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  right: 4px;
  border: 6px solid transparent;
  border-top-color: var(--postep-dark);
  pointer-events: none;
  z-index: 1000;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: none !important;
}
.wishlist-button-add[data-tooltip]:hover::after,
.wishlist-button-add[data-tooltip]:hover::before { visibility: visible !important; opacity: 1 !important; }
/* Product page tooltip — center above heart */
.product-add-to-favourite .wishlist-button-add[data-tooltip]::after { right: auto; left: 50%; transform: translateX(-50%); }
.product-add-to-favourite .wishlist-button-add[data-tooltip]::before { right: auto; left: 50%; transform: translateX(-50%); }

@media (min-width: 860px) {
  .product-miniature-inner .product-description {
    height: 131px;
    justify-content: space-between;
  }
}
@media (max-width: 860px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 7px 12px; }
  .products-selection { display: none; }
}
@media (max-width: 576px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 7px 12px; }
}

/* Hide quick view links */
.quick-view { display: none !important; }

/* === CATEGORY PAGE LAYOUT (sidebar + content grid) === */
body#category .container > .row {
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 3rem;
  align-items: flex-start;
}
body#category #left-column {
  flex: none;
  max-width: none;
  padding: 0 12px;
}
body#category #content-wrapper {
  flex: none;
  max-width: none;
  padding: 0 12px;
  margin-bottom: 121px;
}
@media (max-width: 860px) {
  body#category .container > .row {
    display: flex;
    flex-wrap: wrap;
  }
  body#category #left-column { display: none; }
  body#category #content-wrapper { flex: 0 0 100%; max-width: 100%; }
}

/* === BREADCRUMBS === */
.breadcrumb {
  font-size: 15px;
  padding: 12px 0;
  margin: 20px 0 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.breadcrumb ol li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  margin-right: 4px;
  color: var(--postep-red);
}
.breadcrumb a { color: var(--postep-gray-dark); }
.breadcrumb a:hover { color: var(--postep-red); }

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 16px 0;
  font-size: 14px;
}
.pagination .col-md-4 { display: none; }
.page-list {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.page-list li a,
.page-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 4px 8px;
  font-size: 14px;
  color: var(--postep-black);
  text-decoration: none;
}
.page-list li a:hover { color: var(--postep-red); }
.page-list li.current a {
  font-weight: 700;
  color: var(--postep-red);
  border-bottom: 2px solid var(--postep-red);
}
.page-list li a.disabled { pointer-events: none; opacity: 0.4; }
.page-list li a.previous,
.page-list li a.next {
  font-weight: 600;
  gap: 4px;
}

/* === PAGE CONTENT === */
.page-header h1 { font-size: 28px; font-weight: 700; margin: 24px 0; }
.page-content { padding: 16px 0; }

/* === NOTIFICATIONS === */
.notifications-container { max-width: var(--postep-content-max-width); margin: 0 auto; padding: 0 16px; }

/* === WRAPPER === */
#wrapper { max-width: var(--postep-content-max-width); margin: 0 auto; padding: 0 16px; }
#wrapper > .container { max-width: 100%; padding: 0; }

/* === CONTACT PAGE === */
.contact-section {
  padding: 0;
}
.contact-left h1 { font-size: 28px; margin-bottom: 24px; }
.contact-address { line-height: 40px; }
.contact-orange-line {
  width: 41px;
  height: 3px;
  background: var(--postep-red);
  border-radius: 100px;
  margin: 34px 0;
}
/* Phone numbers: labels + numbers from CMS HTML */
.contact-phones { margin-bottom: 24px; }
.contact-phones b { color: var(--postep-red); }
.contact-phones p { margin-bottom: 0; }
.contact-phones a {
  font-size: 26px;
  font-weight: 400;
  text-decoration: none;
  color: inherit;
}
.contact-phones a:hover { color: var(--postep-red); }
/* Social icons */
.contact-social-icons { display: flex; gap: 1rem; margin-top: 24px; }
.social-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #D0D0D0;
  transition: border-color 0.3s;
}
.social-icon-circle:hover { border-color: var(--postep-red); }
/* Contact form */
.contact-right h2 {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: bold;
  margin-bottom: 16px;
}
.contact-right .form-group { margin-bottom: 16px; }
.contact-right .form-group label { display: block; }
.contact-right .form-group label span { display: block; margin-bottom: 4px; }
.contact-right .form-group label span p { margin-bottom: 0; }
.contact-right .form-control {
  display: block;
  width: 100%;
  border: 1px solid var(--postep-border);
  border-radius: 0;
  padding: 10px 14px;
  font-family: var(--postep-font);
  font-size: 16px;
  box-sizing: border-box;
}
.contact-right textarea.form-control { min-height: 219px; resize: vertical; }
.contact-right .form-text { font-size: 13px; color: #666; margin-top: 4px; }
.btn-contact-submit {
  display: block;
  width: 100%;
  background: var(--postep-red);
  border: none;
  padding: 12px 28px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 8px;
}
.btn-contact-submit:hover { opacity: 0.9; }
.contact-form-privacy { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
.contact-form-privacy p { margin-bottom: 0; }
.contact-form-admin { font-size: 10px; }
.contact-form-admin p { margin-bottom: 0; }
.contact-right .form-footer { margin-top: 16px; }
.contact-right .notification { margin-bottom: 16px; padding: 12px; border-radius: 4px; }
.contact-right .notification-success { background: #d4edda; color: #155724; }
.contact-right .notification-error { background: #f8d7da; color: #721c24; }
.contact-right .notification ul { list-style: none; padding: 0; margin: 0; }
/* Map section */
.contact-map-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 40px;
  margin-bottom: 0;
}
.contact-map-header { margin-bottom: 24px; }
.contact-map-header h2 {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: bold;
}
.contact-map { height: 463px; width: 100%; }

@media (min-width: 1200px) {
  .contact-right h2,
  .contact-map-header h2 { font-size: 46px; }
}
@media (min-width: 860px) {
  .contact-section {
    display: grid;
    grid-template-columns: 5fr 4fr;
    column-gap: 7rem;
    padding-top: 70px;
  }
  .contact-left { padding-top: 100px; }
  .contact-social-icons { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .contact-right h2 { display: none; }
  .contact-map { height: 301px; }
  .contact-map-section { margin-bottom: 42px; }
  .contact-phones a { font-size: 42px; font-weight: 300; }
}

/* === LAYOUT: Home page — header overlay on hero, hero behind header === */
body#index #header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
body#index #wrapper { padding: 0; margin: 0; max-width: none; }
body#index #content-wrapper { padding: 0; }
body#index .breadcrumb { display: none; }
body#index #left-column,
body#index #right-column { display: none; }
body#index .page-content { padding: 0; }

/* === Hide leaking hook content === */
#header .block-categories,
#header .ps-faceted-search,
body#index .notifications-container { display: none !important; }
/* Hide stray text/content leaked by module hooks into header */
#header {
  position: relative;
  font-size: 0;
  line-height: 0;
}
#header .welcome-bar {
  font-size: 14px;
  line-height: 1.6;
}
#header .top-bar,
#header .top-bar-main-page,
#header .mobile-menu-overlay {
  font-size: 16px;
  line-height: 1.6;
}

/* Hide leaked text between header and wrapper */
main {
  font-size: 0;
  line-height: 0;
}
main > #header,
main > section#wrapper,
main > footer,
main > .cookie-popup,
main > script {
  font-size: 16px;
  line-height: 1.6;
}

/* Hide blockwishlist injected duplicate buttons (module JS overlay) */
.product-miniature > .wishlist-button-add,
.thumbnail-container > .wishlist-button-add { display: none !important; }

/* Hide empty active filters section */
#js-active-search-filters.hide { display: none; }
.active_filters:empty { display: none; }

/* Hide mobile showing text */
.showing { display: none !important; }

/* Hide blockwishlist modal dialogs from flow — they push content down */
.wishlist-add-to,
.wishlist-create,
.wishlist-delete,
.wishlist-login,
.wishlist-toast {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* === GALLERY PAGE === */
.gallery-container {
  padding: 1rem 0;
  min-height: 80vh;
  margin: 70px 240px;
}
.gallery-container h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}
.gallery-images-grid {
  column-count: 5;
  column-gap: 20px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 4px;
}
.gallery-img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.4s ease;
  opacity: 0;
}
.gallery-img.loaded {
  opacity: 1;
}
.gallery-img:hover {
  transform: scale(1.1);
}
@media (max-width: 1420px) {
  .gallery-container { margin: 0 16px 36px; }
}
@media (max-width: 991.98px) {
  .gallery-images-grid { column-count: 4; }
}
@media (max-width: 767.98px) {
  .gallery-images-grid { column-count: 3; }
}
@media (max-width: 575.98px) {
  .gallery-images-grid { column-count: 2; }
}

/* Gallery Lightbox Modal */
.gallery-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.15s linear;
  opacity: 0;
}
.gallery-modal.visible { opacity: 1; }
.gallery-modal-content {
  box-sizing: border-box;
  position: relative;
  background-color: transparent;
  border-radius: 5px;
  max-width: 90vw;
  max-height: 90vh;
  height: 100%;
  width: 80vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal-content img {
  width: auto;
  height: 100%;
  object-fit: contain;
}
.gallery-modal .modal-close-button {
  position: absolute;
  right: 0; top: 0;
  font-size: 24px;
  min-width: 36px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}
.gallery-modal .modal-navigate-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #aaa;
  font-size: 24px;
  padding-bottom: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.gallery-modal .modal-navigate-button:hover { border-color: #fff; }
.gallery-modal .modal-navigate-button-left {
  left: 0;
  border-left: none;
  border-radius: 0 5px 5px 0;
}
.gallery-modal .modal-navigate-button-right {
  right: 0;
  border-right: none;
  border-radius: 5px 0 0 5px;
}
@media (max-width: 1050px) {
  .gallery-modal-content { width: unset; max-width: 95vw; }
}

/* === FILES PAGE === */
.files-container {
  min-height: 80vh;
  margin: 70px 240px;
}
.files-container h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0;
}
.files-container a {
  text-decoration: none;
}
.files-container a:hover {
  text-decoration: underline;
}
.files-container .alert {
  margin-top: 1rem;
}
.files-container .alert h4 {
  font-weight: 700;
}
.files-container .alert a {
  color: #0d6efd;
}
/* Back link in subfolders */
.files-back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #212529;
  font-size: 15px;
}
.files-back-link:hover {
  color: #000;
}
.files-list ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 2rem;
}
.files-list ul li {
  margin-bottom: 1.25rem;
}
.files-list ul li:last-child {
  margin-bottom: 0;
}
.files-list ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0d6efd;
}
.files-list ul li a img {
  flex-shrink: 0;
}
@media (max-width: 1420px) {
  .files-container {
    margin: 23px 16px 36px;
  }
}

/* === AUTH PAGE (Login + Registration) === */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 70px;
  margin-bottom: 500px;
}
@media (max-width: 860px) {
  .auth-page {
    margin-top: 23px;
    margin-bottom: 32px;
  }
}

/* Title */
.auth-title {
  font-size: 31px;
  text-align: center;
  padding: 0 16px;
}
.auth-title strong {
  font-weight: 700;
}

/* Account Pros */
.auth-account-pros {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-account-pros-title {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-account-pros-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
  padding-left: 0;
}
.auth-account-pros-list li {
  font-weight: 600;
  display: flex;
  align-items: center;
  column-gap: 16px;
  row-gap: 13px;
}
.auth-account-pros-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F2544A;
  flex-shrink: 0;
}
@media (min-width: 860px) {
  .auth-account-pros-list {
    flex-direction: row;
  }
  .auth-account-pros-list li {
    margin: 0 20px;
  }
}

/* Two-column layout */
.auth-components-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
}
.auth-separator {
  width: 0;
  height: 100px;
  border: 1px solid #e4e4e4;
  margin: 120px 120px;
  flex-shrink: 0;
}
.auth-component-wrapper {
  width: 50%;
  max-width: 400px;
}
@media (max-width: 767.98px) {
  .auth-components-wrapper {
    display: block;
  }
  .auth-separator {
    height: 1px;
    width: auto;
    margin: 32px 16px 8px 16px;
    border: none;
    border-top: 1px solid #e4e4e4;
  }
  .auth-component-wrapper {
    width: 100%;
    max-width: none;
  }
}

/* Form wrapper */
.auth-form-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

/* Form title */
.auth-form-title {
  padding: 26px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

/* Form groups */
.auth-form-group {
  width: 100%;
  margin-top: 12px;
}
.auth-form-group-first {
  margin-top: 0;
}

/* Labels */
.auth-form-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
}
.auth-required {
  color: var(--postep-red);
}

/* Inputs */
.auth-form-input {
  box-sizing: border-box;
  font-family: var(--postep-font);
  font-size: 14px;
  padding: 9px 13px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  background-color: white;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.auth-form-input:focus {
  outline: 3px solid #d1d5db;
}

/* Submit buttons */
.auth-form-button {
  box-sizing: border-box;
  width: 100%;
  background-color: #f2544a;
  font-family: var(--postep-font);
  font-size: 16px;
  font-weight: 400;
  padding: 15px 0;
  border-radius: 4px;
  border: none;
  color: white;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity 0.15s;
}
.auth-form-button:hover {
  opacity: 0.9;
}
.auth-form-button:disabled {
  cursor: default;
  background-color: #ff8d84;
}

/* Error messages */
.auth-form-error {
  color: #f2544a;
  font-size: 13px;
  margin-top: 4px;
}

/* Password utils row */
.auth-password-utils {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  font-size: 14px;
}
.auth-remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-remember-label {
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

/* Red link */
.auth-red-link {
  font-weight: 700;
  color: #f2544a;
  text-decoration: none;
  font-size: 14px;
}
.auth-red-link:hover,
.auth-red-link:active {
  text-decoration: underline;
  color: #f2544a;
}

/* Custom checkbox */
.auth-custom-checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}
.auth-custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 1;
}
.auth-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.auth-custom-checkbox input:checked ~ .auth-checkmark {
  background-color: #58dba4;
  border-color: #58dba4;
}
.auth-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.auth-custom-checkbox input:checked ~ .auth-checkmark:after {
  display: block;
}
.auth-custom-checkbox .auth-checkmark:after {
  left: 6px;
  top: 3px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Checkbox form groups */
.auth-form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.auth-checkbox-label {
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}
.auth-checkbox-label a {
  color: #f2544a;
  font-weight: 700;
  text-decoration: underline;
}

/* Privacy policy */
.auth-privacy-policy {
  font-size: 11px;
  text-align: center;
  color: #666;
  margin-top: 16px;
  line-height: 1.5;
  padding: 0 8px;
}

/* Registration button spacing */
.auth-form-button-register {
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Form errors from PrestaShop (alert blocks) */
.auth-form-wrapper .alert {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  font-size: 13px;
}
.auth-form-wrapper .alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}
.auth-form-wrapper .alert ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}

/* Success messages */
.auth-success-message {
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

/* Auth page: full-width content wrapper and hide breadcrumb */
body#authentication #content-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
}
body#authentication #wrapper .breadcrumb {
  display: none;
}

/* === French Popup (ELCIA/ProDevis) === */
.french-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}
.french-popup-overlay.open { display: flex; }
.french-popup {
  background: #fff;
  max-width: 600px;
  width: 90%;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.french-popup-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 0;
}
.french-popup-close {
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: #666;
}
.french-popup-close:hover { color: #000; }
.french-popup-body {
  padding: 0 24px 24px;
  text-align: center;
}
.french-popup-body img { max-width: 100%; height: auto; }

/* === PDF Render Mode === */
html.pdf-render .no-print { display: none !important; }
html.pdf-render .print-only { display: block !important; }
html.pdf-render #left-column { display: none !important; }
html.pdf-render .container > .row { display: block !important; }
html.pdf-render #content-wrapper { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; padding: 0 20px !important; }
html.pdf-render .breadcrumb { display: none !important; }
html.pdf-render .product-buttons-row { display: none !important; }
html.pdf-render .product-login-prompt { display: none !important; }
html.pdf-render .postep-product-tabs-mobile { display: none !important; }
html.pdf-render .postep-modal-overlay { display: none !important; }
html.pdf-render .slider-arrow { display: none !important; }
html.pdf-render .related-subcat-image { display: none !important; }
html.pdf-render .cookie-popup { display: none !important; }
html.pdf-render .french-popup-overlay { display: none !important; }
html.pdf-render .mobile-menu-overlay { display: none !important; }
html.pdf-render .welcome-bar { display: none !important; }
html.pdf-render .category-title-banner { display: none !important; }
.print-tab-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e6e6e6;
}
