/* ════════════════════════════════════════════════════════════════════════
   Site chrome: header, breadcrumb bar, footer, mobile menu, bottom bar.

   The header and footer are Divi Theme Builder layouts made of native modules
   (Text, Image, Menu, Button) and the theme's custom modules (product search,
   account/favourites/cart, breadcrumbs, newsletter, mobile bar). This file
   arranges them (the design's header rows are flex rows, not Divi's float grid).
   Chrome is STRUCTURE, so !important is used where Divi's own layout rules must
   yield. Colours, text and links of the text modules stay plain defaults —
   editable in the Visual Builder.

   Breakpoint: 980px, where Divi switches to its mobile layout.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Shared row plumbing ───────────────────────────────────────────────── */
.et-l--header .et_pb_section { padding: 0; background-color: transparent; }

.gsp-topbar__row,
.gsp-headmain__row,
.gsp-headmain__cats,
.gsp-nav__row,
.gsp-crumbs__row {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
}
.gsp-topbar__row::after,
.gsp-headmain__row::after,
.gsp-headmain__cats::after,
.gsp-nav__row::after,
.gsp-crumbs__row::after { display: none !important; }

.gsp-topbar__row > .et_pb_column,
.gsp-headmain__row > .et_pb_column,
.gsp-headmain__cats > .et_pb_column,
.gsp-nav__row > .et_pb_column,
.gsp-crumbs__row > .et_pb_column {
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.et-l--header .et_pb_module { margin-bottom: 0 !important; }

/* ── 1. Utility bar ────────────────────────────────────────────────────── */
.et-l--header .et_pb_section.gsp-topbar { background-color: var(--gsp-chrome); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.gsp-topbar__row { justify-content: space-between; gap: 24px; min-height: 36px; }

.gsp-topbar .et_pb_text { font: 500 12px/16px var(--gsp-font-body); color: var(--gsp-muted); }
.gsp-topbar .et_pb_text p { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 0; }
.gsp-topbar .et_pb_text a { color: var(--gsp-muted); text-decoration: none; }
.gsp-topbar .et_pb_text a:hover { color: var(--gsp-primary); }
.gsp-topbar .gsp-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* Icons come from a class on the item (assets/css/icons.css), not from markup. */
.gsp-topbar .gsp-ico { --gsp-ico-size: 12px; --gsp-ico-gap: 0; }
.gsp-topbar .gsp-ico--phone { color: var(--gsp-ink-2); font-family: var(--gsp-font-head); font-weight: 600; }
.gsp-topbar .gsp-ico--phone a { color: inherit; }
.gsp-topbar .gsp-ico--phone::before { background: var(--gsp-primary); }
.gsp-topbar .gsp-ico--clock::before { background: var(--gsp-faint); }
.gsp-topbar .gsp-ico--truck { --gsp-ico-size: 10px; color: var(--gsp-text); }
.gsp-topbar .gsp-ico--truck::before { background: var(--gsp-accent); }
.gsp-topbar .gsp-sep { color: #cbd5e1; }

/* ── 2. Logo · search · account ────────────────────────────────────────── */
.et-l--header .et_pb_section.gsp-headmain { background-color: #fff; }
.gsp-headmain__row { gap: 24px; min-height: 86px; padding: 0 24px !important; }
.gsp-headmain__row > .et_pb_column:nth-child(1) { flex: none; display: flex; align-items: center; gap: 8px; }
.gsp-headmain__row > .et_pb_column:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.gsp-headmain__row > .et_pb_column:nth-child(3) { flex: none; }

.gsp-logo { line-height: 0; }
.gsp-logo img { display: block; height: 62px; width: auto; max-width: none; }

.gsp-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 637px; height: 48px; margin: 0 auto; padding: 0 6px 0 18px;
  border: 1px solid #e9edf3; border-radius: 100px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gsp-search:focus-within { border-color: var(--gsp-primary); box-shadow: 0 0 0 3px rgba(22, 96, 134, .12); }
.gsp-search .gsp-search__field {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--gsp-ink); font: 400 14px/20px var(--gsp-font-body); box-shadow: none; -webkit-appearance: none; appearance: none;
}
.gsp-search .gsp-search__field::placeholder { color: #8a8d93; }
.gsp-search .gsp-search__field::-webkit-search-cancel-button { -webkit-appearance: none; }
.gsp-search .gsp-search__cat {
  flex: none; max-width: 170px; height: 30px; padding: 0 28px 0 12px;
  border: 1px solid var(--gsp-line); border-radius: var(--gsp-r-xs);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%236b7280' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 8px 5px;
  color: var(--gsp-text); font: 500 12px/16px var(--gsp-font-head); cursor: pointer;
  -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.gsp-search .gsp-search__submit {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px;
  border: 0; border-radius: var(--gsp-r-pill); background: var(--gsp-primary); color: #fff;
  font: 600 12px/16px var(--gsp-font-head); cursor: pointer; box-shadow: var(--gsp-shadow-xs);
  transition: background-color .15s ease;
}
.gsp-search .gsp-search__submit:hover { background: var(--gsp-primary-hover); }

/* Predictive suggestions (js/custom.js §7, data from inc/search.php). */
.gsp-search { position: relative; }
/* Divi columns are stacking contexts (z-index 2) and it lifts the row that holds a
   Menu module to 999: the column with the search must sit above both, or the
   suggestions would slide under the navigation. */
.et-l--header .gsp-headmain__row > .et_pb_column:nth-child(2),
.et_pb_column:has(> .gsp_product_search .gsp-suggest) { z-index: 1001; }
.gsp-suggest {
  position: absolute; z-index: 1000; top: calc(100% + 8px); left: 0; right: 0;
  max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 8px;
  border: 1px solid var(--gsp-line); border-radius: var(--gsp-r-lg); background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16); text-align: left;
}
.gsp-suggest.is-loading::before {
  content: ""; display: block; height: 2px; margin: 0 4px 6px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gsp-primary), transparent) 0 0 / 40% 100% no-repeat;
  animation: gsp-suggest-load 1s linear infinite;
}
@keyframes gsp-suggest-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.gsp-suggest__label { padding: 6px 8px 4px; color: #6b7280; font: 600 11px/16px var(--gsp-font-head); letter-spacing: .06em; text-transform: uppercase; }
.gsp-suggest__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.gsp-suggest .gsp-suggest__cat {
  padding: 5px 12px; border: 1px solid var(--gsp-line); border-radius: var(--gsp-r-pill);
  color: var(--gsp-primary); font: 600 12px/16px var(--gsp-font-head); text-decoration: none;
}
.gsp-suggest .gsp-suggest__product {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--gsp-r);
  color: var(--gsp-ink); text-decoration: none;
}
.gsp-suggest__img { flex: none; width: 48px; height: 48px; border-radius: var(--gsp-r-xs); background: #f5f6f8; object-fit: contain; }
.gsp-suggest__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gsp-suggest__title { overflow: hidden; font: 500 13px/18px var(--gsp-font-head); text-overflow: ellipsis; white-space: nowrap; }
.gsp-suggest__price { color: var(--gsp-primary); font: 700 13px/18px var(--gsp-font-head); }
.gsp-suggest__price del { margin-right: 6px; color: #8a8d93; font-weight: 500; }
.gsp-suggest__price ins { text-decoration: none; }
.gsp-suggest__price small { color: #6b7280; font-weight: 500; }
.gsp-suggest__price .woocommerce-Price-currencySymbol { margin-left: .25em; }
.gsp-suggest__price.is-soldout { color: #b42318; font-weight: 600; }
.gsp-suggest .gsp-suggest__all {
  display: block; margin-top: 6px; padding: 10px 8px; border-top: 1px solid var(--gsp-line); border-radius: 0 0 var(--gsp-r) var(--gsp-r);
  color: var(--gsp-primary); font: 600 13px/18px var(--gsp-font-head); text-align: center; text-decoration: none;
}
.gsp-suggest .gsp-suggest__item:hover, .gsp-suggest .gsp-suggest__item.is-active { background: #f1f6f9; }
.gsp-suggest .gsp-suggest__cat:hover, .gsp-suggest .gsp-suggest__cat.is-active { border-color: var(--gsp-primary); }
.gsp-suggest__empty { padding: 14px 8px; color: #6b7280; font: 400 13px/18px var(--gsp-font-body); }

/* Visual Builder: module preview placeholder (assets/js/vb-modules.js). */
.gsp-vb-placeholder { padding: 14px 16px; border: 1px dashed #c0c7cf; border-radius: var(--gsp-r); color: #6b7280; font: 500 13px/18px var(--gsp-font-head); text-align: center; }

.gsp-tools { display: flex; align-items: center; gap: 24px; }
.gsp-tool { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--gsp-ink-2); text-decoration: none; }
.gsp-tool__icon {
  position: relative; display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--gsp-surface-2); color: var(--gsp-text);
  transition: background-color .15s ease, color .15s ease;
}
.gsp-tool:hover .gsp-tool__icon { background: #e2e8f0; color: var(--gsp-primary); }
.gsp-tool__text { display: flex; flex-direction: column; }
.gsp-tool__hint { font: 400 11px/14px var(--gsp-font-body); color: var(--gsp-faint); }
.gsp-tool__label { font: 500 12px/15px var(--gsp-font-head); color: var(--gsp-ink-2); }
.gsp-tool__badge {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--gsp-accent); color: var(--gsp-accent-ink);
  font: 700 10px/16px var(--gsp-font-text); text-align: center;
}
.gsp-tool--cart { padding: 6px 14px 6px 12px; border: 1px solid #e9edf3; border-radius: var(--gsp-r-pill); background: #fff; }
.gsp-tool--cart .gsp-tool__icon { width: 36px; height: 36px; background: var(--gsp-primary); color: #fff; }
.gsp-tool--cart:hover .gsp-tool__icon { background: var(--gsp-primary-hover); color: #fff; }
.gsp-tool--cart .gsp-tool__badge { top: -4px; right: -6px; height: 18px; min-width: 18px; border: 2px solid #fff; line-height: 14px; }

/* Mobile-only pieces are hidden on desktop. */
.gsp-headmain__cats, .gsp-bottomnav, .gsp-mm-backdrop { display: none !important; }
.et-l--footer .et_pb_section.gsp-mobilebar { padding: 0; background: transparent; }
.gsp-mobilebar .et_pb_row { width: 100%; max-width: none; padding: 0; }
/* Menu entries meant for the phone menu only (class set on the menu item). */
.gsp-nav .gsp-menu .et-menu > li.gsp-mobile-only { display: none; }

/* ── 3. Navigation (Divi Menu module) ──────────────────────────────────── */
.et-l--header .et_pb_section.gsp-nav { background-color: var(--gsp-chrome); border-top: 1px solid var(--gsp-line-soft); border-bottom: 1px solid var(--gsp-line-soft); }
/* Sticky header: the logo row and the navigation are Divi sticky sections (set in the
   layout: Scroll Effects → Sticky Position "Stick to Top", offset from surrounding sticky
   elements). Divi adds .et_pb_sticky while they are stuck; the shadow marks the edge. */
.et-l--header .et_pb_section.gsp-nav.et_pb_sticky { box-shadow: 0 8px 18px -12px rgba(2, 6, 23, .45); }
.gsp-nav__row { min-height: 80px; }
.gsp-nav__row > .et_pb_column { flex: 1 1 auto; }

.gsp-nav .gsp-menu { background: transparent; }
.gsp-nav .gsp-menu .et_pb_menu_inner_container,
.gsp-nav .gsp-menu .et_pb_menu__wrap,
.gsp-nav .gsp-menu .et_pb_menu__menu,
.gsp-nav .gsp-menu .et-menu-nav { display: flex; flex: 1 1 auto; width: 100%; }
.gsp-nav .gsp-menu .et-menu {
  display: flex !important; flex: 1 1 auto; flex-wrap: nowrap; align-items: center; gap: 28px;
  width: 100%; margin: 0 !important; padding: 0 !important;
}
.gsp-nav .gsp-menu .et-menu > li { display: flex; align-items: center; margin: 0 !important; padding: 0 !important; }
.gsp-nav .gsp-menu .et-menu > li > a {
  display: flex; align-items: center; height: 48px; padding: 0 !important;
  border-bottom: 1px solid transparent;
  color: var(--gsp-text); font: 600 12px/16px var(--gsp-font-body); letter-spacing: .3px; text-transform: uppercase;
  white-space: nowrap; opacity: 1 !important;
  transition: color .15s ease, border-color .15s ease;
}
.gsp-nav .gsp-menu .et-menu > li > a:hover { color: var(--gsp-primary); }
.gsp-nav .gsp-menu .et-menu > li.current-menu-item > a,
.gsp-nav .gsp-menu .et-menu > li.current-menu-ancestor > a,
.gsp-nav .gsp-menu .et-menu > li.current_page_item > a {
  border-bottom-color: var(--gsp-primary); color: var(--gsp-primary);
  font-family: var(--gsp-font-head); font-weight: 700;
}
.gsp-nav .gsp-menu .et-menu > li > a::after { display: none !important; } /* Divi's icon-font arrow */

/* "Categorii" — the dark button that opens the department panel. */
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats { margin-right: 4px !important; }
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > a {
  gap: 8px; height: 36px; padding: 0 16px !important; border: 0; border-radius: var(--gsp-r-sm);
  background: var(--gsp-ink); color: #fff !important;
  font: 600 12px/16px var(--gsp-font-head); letter-spacing: .3px;
}
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > a:hover { background: var(--gsp-ink-2); }
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > a::before {
  content: ""; width: 13px; height: 9px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M0 0h13v1.5H0zM0 3.75h13v1.5H0zM0 7.5h13V9H0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M0 0h13v1.5H0zM0 3.75h13v1.5H0zM0 7.5h13V9H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > a::after {
  display: block !important; content: "" !important; position: static !important;
  width: 8px; height: 5px; margin-left: 8px; background: #cbd5e1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Dropdown panels (department tree). Divi handles show/hide on hover. */
.gsp-nav .gsp-menu .et-menu li ul.sub-menu {
  width: 300px; padding: 8px !important; border: 1px solid var(--gsp-line) !important; border-radius: var(--gsp-r-md);
  background: #fff !important; box-shadow: var(--gsp-shadow-pop) !important;
}
.gsp-nav .gsp-menu .et-menu > li > ul.sub-menu { top: calc(100% + 6px) !important; left: 0 !important; }
/* Divi 5 closes a dropdown the instant the pointer leaves its <li> (mouseleave with a 0 ms
   delay — Divi 4 waited 200 ms), so the visual gaps above a panel and beside a sub-panel must
   still count as "inside": an invisible bridge on each panel covers them. */
.gsp-nav .gsp-menu .et-menu li ul.sub-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
}
/* 4px gap + the 8px padding of the parent panel, so the bridge starts at the parent item's edge. */
.gsp-nav .gsp-menu .et-menu li li ul.sub-menu::before { left: -13px; right: auto; top: 0; bottom: 0; width: 13px; height: auto; }
.gsp-nav .gsp-menu .et-menu li li { display: block; width: 100%; margin: 0 !important; padding: 0 !important; line-height: 1.3; }
.gsp-nav .gsp-menu .et-menu li li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100% !important; padding: 9px 12px !important; border-radius: var(--gsp-r);
  color: var(--gsp-ink-2) !important; font: 500 13px/18px var(--gsp-font-body) !important;
  letter-spacing: 0; text-transform: none; white-space: normal; opacity: 1 !important;
}
.gsp-nav .gsp-menu .et-menu li li a:hover { background: var(--gsp-surface-2) !important; color: var(--gsp-primary) !important; }
.gsp-nav .gsp-menu .et-menu li li.menu-item-has-children > a::after {
  display: block !important; content: "" !important; position: static !important; flex: none;
  width: 5px; height: 8px; background: var(--gsp-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 8'%3E%3Cpath d='M1 1l3 3-3 3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 8'%3E%3Cpath d='M1 1l3 3-3 3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gsp-nav .gsp-menu .et-menu li li ul.sub-menu { top: -9px !important; left: calc(100% + 4px) !important; }
/* Long lists (Bricolaj, Instalații) flow into columns instead of a 1300px-tall strip. */
.gsp-nav .gsp-menu .et-menu li li.gsp-cols-2 > ul.sub-menu { width: 520px; column-count: 2; column-gap: 4px; }
.gsp-nav .gsp-menu .et-menu li li.gsp-cols-3 > ul.sub-menu { width: 720px; column-count: 3; column-gap: 4px; }
.gsp-nav .gsp-menu .et-menu li li.gsp-cols-2 > ul.sub-menu > li,
.gsp-nav .gsp-menu .et-menu li li.gsp-cols-3 > ul.sub-menu > li { break-inside: avoid; }
/* Keep wide panels on screen: anchor them to the top of the department list. */
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > ul.sub-menu { position: absolute; }
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > ul.sub-menu > li { position: static; }
.gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > ul.sub-menu > li > ul.sub-menu { top: -1px !important; min-height: calc(100% + 2px); }

/* The hamburger and the phone menu (Divi's own, from the same Menu module) only
   exist below 981px — see "Mobile layout" at the end of this file. */
.gsp-nav .et_mobile_nav_menu { display: none; }

@media (max-width: 1240px) {
  .gsp-nav .gsp-menu .et-menu { gap: 18px; }
  .gsp-tool__text { display: none; }
  .gsp-tools { gap: 12px; }
  .gsp-tool--cart { padding: 6px; }
  /* Multi-column panels must still fit beside the 300px department list. */
  .gsp-nav .gsp-menu .et-menu li li.gsp-cols-3 > ul.sub-menu { width: 520px; column-count: 2; }
  .gsp-nav .gsp-menu .et-menu li li.gsp-cols-2 > ul.sub-menu { width: 300px; column-count: 1; }
}
/* Small laptops / landscape tablets: the full desktop navigation in ~1000px. */
@media (max-width: 1100px) {
  .gsp-topbar__row, .gsp-nav__row { padding: 0 20px !important; }
  .gsp-nav .gsp-menu .et-menu { gap: 13px; }
  .gsp-nav .gsp-menu .et-menu > li > a { font-size: 11px; letter-spacing: 0; }
  .gsp-nav .gsp-menu .et-menu > li.gsp-menu-cats > a { padding: 0 12px !important; }
  .gsp-nav .gsp-menu .et-menu li ul.sub-menu { width: 260px; }
  .gsp-nav .gsp-menu .et-menu li li.gsp-cols-3 > ul.sub-menu { width: 460px; }
}

/* CheckoutWC's floating cart button (bottom right, opens the side cart) — wanted
   by the operator as on petraelisa.ro. On phones the bottom bar already has the
   cart, and the button would sit on top of it, so it stays off there. */
@media (max-width: 980px) { #cfw-side-cart-floating-button { display: none !important; } }

/* ── Breadcrumb bar (module gsp/breadcrumbs, last section of the header) ─── */
.et-l--header .et_pb_section.gsp-crumbs { border-bottom: 1px solid var(--gsp-line-soft); background-color: #fff; }
/* No trail (front page, 404) → the module prints nothing and the section folds. */
.et_pb_section.gsp-crumbs:not(:has(.gsp-crumbs__trail)) { display: none; }
.gsp-crumbs__trail {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; padding: 8px 0;
  color: var(--gsp-muted); font: 400 13px/18px var(--gsp-font-body);
}
.gsp-crumbs__trail a { display: inline-flex; align-items: center; gap: 6px; color: var(--gsp-muted); text-decoration: none; }
.gsp-crumbs__trail a:hover { color: var(--gsp-primary); }
.gsp-crumbs__trail .gsp-crumb-sep { color: #c0c7cf; font-size: 11px; }
.gsp-crumbs__trail .gsp-crumb-current { color: var(--gsp-primary-deep); font: 600 13px/18px var(--gsp-font-head); }

/* ── Footer (Theme Builder layout) ─────────────────────────────────────── */
.et-l--footer .et_pb_module { margin-bottom: 0; }

.gsp-newsletter { background: var(--gsp-primary); }
/* No working subscribe form (newsletter module off) → no band. See inc/footer.php. */
.gsp-no-newsletter .et_pb_section.gsp-newsletter, .gsp-no-newsletter .gsp-newsbox { display: none; }
.gsp-newsletter__row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 519px); gap: 24px; align-items: center; }
.gsp-newsletter__row::after { display: none !important; }
.gsp-newsletter__row > .et_pb_column { float: none !important; width: auto !important; margin: 0 !important; }
.gsp-newsletter .et_pb_text p.gsp-eyebrow { --gsp-ico-size: 12px; --gsp-ico-gap: 6px; padding: 0 0 8px; color: var(--gsp-accent); font: 600 12px/16px var(--gsp-font-body); text-transform: uppercase; }
.gsp-newsletter h3 { padding: 0 0 8px; color: #fff; font: 700 24px/32px var(--gsp-font-head); letter-spacing: -.6px; }
.gsp-newsletter .et_pb_text p { max-width: 586px; padding: 0; color: #cbd5e1; font: 400 14px/20px var(--gsp-font-body); }

.gsp-subscribe { display: flex; flex-direction: column; gap: 8px; }
.gsp-subscribe form, .gsp-subscribe .netforge-subscribe-form { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
.gsp-subscribe p { margin: 0; padding: 0; }
.gsp-subscribe label, .gsp-subscribe .netforge-subscribe-field--name { display: none; }
.gsp-subscribe .netforge-subscribe-field--email { flex: 1 1 200px; }
.gsp-subscribe input[type="email"] {
  flex: 1 1 200px; width: 100%; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: var(--gsp-r-sm);
  background: #fff; color: var(--gsp-ink); font: 400 14px/20px var(--gsp-font-body); outline: 0;
}
.gsp-subscribe button {
  height: 44px; padding: 0 20px; border: 0; border-radius: var(--gsp-r-sm); background: var(--gsp-accent);
  color: var(--gsp-accent-ink); font: 600 14px/20px var(--gsp-font-body); cursor: pointer; white-space: nowrap;
}
.gsp-subscribe button:hover { background: #f5b52a; }
.gsp-subscribe .netforge-subscribe-msg { flex: 1 1 100%; color: #fff; font: 500 13px/18px var(--gsp-font-body); }
.gsp-subscribe__note { color: var(--gsp-info-line); font: 400 11px/16.5px var(--gsp-font-body); }
.gsp-subscribe__note a { color: inherit; text-decoration: underline; }
.gsp-subscribe__note em { opacity: .8; }
.gsp-subscribe__error { padding: 12px 16px; border: 1px solid #fecaca; border-radius: var(--gsp-r); background: #fef2f2; color: #991b1b; font: 500 14px/20px var(--gsp-font-body); }
/* Builder stand-in while the Netforge newsletter module is switched off. */
.gsp-subscribe__demo input { flex: 1 1 200px; height: 44px; padding: 0 16px; border: 0; border-radius: var(--gsp-r-sm); background: #fff; }

.gsp-footer { background: var(--gsp-ink); border-top: 1px solid var(--gsp-ink-2); }
.gsp-footer__cols { display: grid !important; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.gsp-footer__cols::after, .gsp-footer__bottom::after { display: none !important; }
.gsp-footer__cols > .et_pb_column, .gsp-footer__bottom > .et_pb_column { float: none !important; width: auto !important; margin: 0 !important; }
.gsp-footer .gsp-logo img { height: 62px; }
.gsp-footer .et_pb_text { color: var(--gsp-faint); font: 400 12px/19.5px var(--gsp-font-body); }
.gsp-footer .et_pb_text p { padding: 16px 0 0; }
.gsp-footer .et_pb_text h4 {
  margin: 0 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--gsp-ink-2);
  color: #fff; font: 700 14px/20px var(--gsp-font-head); letter-spacing: .7px; text-transform: uppercase;
}
.gsp-footer .et_pb_text ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gsp-footer .et_pb_text ul li { font: 500 12px/16px var(--gsp-font-body); }
.gsp-footer .et_pb_text a { color: var(--gsp-faint); text-decoration: none; }
.gsp-footer .et_pb_text a:hover { color: #fff; }
.gsp-footer .gsp-footer__contact ul { gap: 8px; padding-top: 16px; }
.gsp-footer .gsp-footer__contact li { --gsp-ico-size: 13px; --gsp-ico-gap: 0; display: flex; align-items: flex-start; gap: 8px; color: var(--gsp-line); font-weight: 400; }
.gsp-footer .gsp-footer__contact li a { color: var(--gsp-line); }
.gsp-footer .gsp-footer__contact li::before { margin-top: 2px; background: var(--gsp-accent); }
.gsp-footer .gsp-footer__contact li.is-muted { color: var(--gsp-faint); }

.gsp-footer__bottom {
  display: flex !important; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 48px !important; padding-top: 24px !important; border-top: 1px solid var(--gsp-ink-2);
}
.gsp-footer__bottom .et_pb_text, .gsp-footer__bottom .et_pb_text a { color: var(--gsp-muted); font: 400 12px/16px var(--gsp-font-body); }
.gsp-footer__bottom .et_pb_text p { --gsp-ico-size: 13px; --gsp-ico-gap: 8px; padding: 0; }
.gsp-footer__bottom .et_pb_text p.gsp-ico::before { background: #34d399; }

@media (max-width: 1024px) {
  .gsp-newsletter__row { grid-template-columns: minmax(0, 1fr); }
  .gsp-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gsp-subscribe form, .gsp-subscribe .netforge-subscribe-form { flex-direction: column; }
  .gsp-subscribe input[type="email"], .gsp-subscribe .netforge-subscribe-field--email { flex-basis: auto; }
  .gsp-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gsp-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Mobile layout (≤ 980px)
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  body { padding-bottom: 76px; } /* room for the fixed bottom bar */

  .et-l--header .et_pb_section.gsp-topbar { background-color: var(--gsp-primary-deep); border-bottom: 0; }
  .gsp-topbar__row { min-height: 26px; padding: 0 20px !important; flex-wrap: nowrap; }
  .gsp-topbar .et_pb_text { font: 500 11px/14px var(--gsp-font-text); letter-spacing: .3px; }
  .gsp-topbar .et_pb_text p { flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
  .gsp-topbar__row > .et_pb_column:first-child { flex: 1 1 auto; }
  .gsp-topbar__row > .et_pb_column:last-child, .gsp-topbar .gsp-sep { display: none !important; }
  .gsp-topbar .gsp-ico--phone, .gsp-topbar .gsp-ico--phone a { color: #fff; font-family: var(--gsp-font-text); font-weight: 500; }
  .gsp-topbar .gsp-ico--phone::before { background: #ffdea3; }
  .gsp-topbar .gsp-ico--clock { color: #a4d8ff; }
  .gsp-topbar .gsp-ico--clock::before { background: #a4d8ff; }

  .et-l--header .et_pb_section.gsp-headmain { background-color: #fcf8fa; }
  /* hamburger (Divi Menu module, positioned below) | logo | cart + account */
  .gsp-headmain__row { flex-wrap: wrap; gap: 0; min-height: 52px; padding: 4px 16px 0 60px !important; }
  .gsp-headmain__row > .et_pb_column:nth-child(1) { flex: 1 1 auto; gap: 0; }
  .gsp-headmain__row > .et_pb_column:nth-child(2) { order: 3; flex: 1 1 100%; margin-left: -44px !important; padding: 12px 4px 6px !important; }
  /* The logo column takes the free space and centres its image; the 44px
     hamburger on the left is balanced by the tools on the right. */
  .gsp-logo { flex: 1 1 auto; text-align: center; }
  .gsp-logo a, .gsp-logo .et_pb_image_wrap { display: inline-block; }
  .gsp-logo img { height: 44px; }

  .gsp-search { max-width: none; height: 44px; padding: 0 6px 0 16px; border: 1px solid rgba(192, 199, 207, .5); border-radius: var(--gsp-r); background: #f0edef; }
  .gsp-search .gsp-search__field { font: 400 13px/18px var(--gsp-font-text); color: #1c1b1d; }
  .gsp-search .gsp-search__cat, .gsp-search .gsp-search__submit span { display: none; }
  .gsp-search .gsp-search__submit { width: 32px; height: 32px; padding: 0; justify-content: center; background: transparent; color: var(--gsp-primary-deep); box-shadow: none; }
  .gsp-search .gsp-search__submit .gsp-icon { width: 15px; height: 15px; }

  .gsp-tools { gap: 4px; }
  .gsp-tool { padding: 0; }
  .gsp-tool__text, .gsp-tool--wishlist { display: none; }
  .gsp-tool--cart { order: 2; padding: 0; border: 0; background: transparent; } /* account first, the cart last */
  .gsp-tool--cart .gsp-tool__icon { width: 44px; height: 44px; background: transparent; color: var(--gsp-primary-deep); }
  .gsp-tool--cart .gsp-tool__icon .gsp-icon { width: 20px; height: 20px; }
  .gsp-tool--cart .gsp-tool__badge { top: 4px; right: 2px; border: 0; line-height: 18px; color: #705100; }
  .gsp-tool--account { order: 1; }
  .gsp-tool--account .gsp-tool__icon { width: 32px; height: 32px; border-radius: var(--gsp-r-md); background: var(--gsp-primary-deep); color: #fff; }

  /* "Toate categoriile de produse" — a Divi Button that opens the menu on its
     categories branch (link #gsp-categorii, handled in js/custom.js). */
  .gsp-headmain__cats { display: flex !important; padding: 14px 20px 10px !important; }
  .gsp-headmain__cats > .et_pb_column { flex: 1 1 auto; }
  body .gsp-headmain__cats .et_pb_button.et_pb_module[class].gsp-cats-button {
    display: flex; align-items: center; justify-content: flex-start; width: 100%; height: 44px; padding: 0 16px;
    border: 0; border-radius: var(--gsp-r); background: var(--gsp-primary-deep); color: #fff;
    font: 600 12px/16px var(--gsp-font-text); letter-spacing: .5px; text-transform: uppercase;
    box-shadow: var(--gsp-shadow-btn);
  }
  body .gsp-headmain__cats .et_pb_button.gsp-cats-button::before {
    content: ""; display: block !important; position: static; flex: none; order: -1; width: 13px; height: 9px; margin: 0 8px 0 0; opacity: 1; transform: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M0 0h13v1.5H0zM0 3.75h13v1.5H0zM0 7.5h13V9H0z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M0 0h13v1.5H0zM0 3.75h13v1.5H0zM0 7.5h13V9H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body .gsp-headmain__cats .et_pb_button.gsp-cats-button::after {
    content: "" !important; display: block !important; position: static; flex: none; width: 8px; height: 5px; margin: 0 0 0 auto; opacity: 1; transform: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .gsp-crumbs__row { padding: 0 20px !important; }

  /* ── Navigation on phones: the SAME Divi Menu module ─────────────────────
     Its section collapses to nothing; the hamburger is lifted into the logo row
     and the menu list (Divi clones it into ul.et_mobile_menu) becomes a side
     panel. Divi toggles .mobile_nav.opened / .closed; js/custom.js adds the
     panel header, the sub-menu toggles and the backdrop. */
  .et-l--header { position: relative; }
  .et-l--header .et_pb_section.gsp-nav { position: static; border: 0; background: transparent; }
  .gsp-nav .et_pb_row, .gsp-nav .et_pb_column, .gsp-nav .gsp-menu, .gsp-nav .et_pb_menu_inner_container, .gsp-nav .et_pb_menu__wrap { position: static !important; }
  .gsp-nav__row { min-height: 0; padding: 0 !important; }
  .gsp-nav .gsp-menu .et_pb_menu__menu { display: none !important; }
  .gsp-nav .et_mobile_nav_menu { display: block; margin: 0; }
  .gsp-nav .mobile_nav { position: static; }
  .gsp-nav .mobile_menu_bar {
    position: absolute; top: 30px; left: 12px; z-index: 5; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; cursor: pointer;
  }
  .gsp-nav .mobile_nav .mobile_menu_bar::before { position: static; top: auto; color: var(--gsp-primary-deep); font-size: 30px; }
  /* Stuck on a phone: hamburger | logo | cart and the search field stay; only the
     categories button is hidden until the page is scrolled back. The hamburger — which
     lives in the navigation section — is pinned over the stuck logo row. */
  .gsp-headmain.et_pb_sticky .gsp-headmain__cats { display: none !important; }
  .gsp-headmain.et_pb_sticky .gsp-headmain__row > .et_pb_column:nth-child(2) { padding-bottom: 10px !important; }
  .gsp-headmain.et_pb_sticky { box-shadow: 0 8px 18px -12px rgba(2, 6, 23, .45); }
  body.gsp-header-stuck .gsp-nav .mobile_menu_bar { position: fixed; top: 32px; left: 12px; z-index: 10011; } /* below the 26px stuck top bar */ /* class set in js/custom.js §9 */
  /* Divi's sticky placeholder is a CLONE of the section: its hamburger and menu panel must not exist twice. */
  .et-l--header .et_pb_sticky_placeholder .mobile_menu_bar, .et-l--header .et_pb_sticky_placeholder .et_mobile_menu { display: none !important; }

  /* Divi's header is a stacking context (z-index 2): while the menu is open the
     whole header is lifted above the page, the cookie bar and the bottom bar. */
  .gsp-menu-open .et-l--header .et_builder_inner_content { z-index: 100001; }
  .gsp-menu-open .et-l--header .et_pb_section.et_pb_sticky { z-index: 100001 !important; } /* Divi's inline z-index 10010 on stuck sections */
  .gsp-menu-open .gsp-nav__row > .et_pb_column { z-index: 100001; }
  .et-l--header .gsp-nav .gsp-menu .et_mobile_menu {
    display: flex !important; flex-direction: column; position: fixed !important; top: 0 !important; bottom: 0; left: 0 !important; z-index: 100001;
    width: min(360px, 90vw) !important; height: auto !important; max-height: none; margin: 0 !important; padding: 0 0 24px !important; overflow-x: hidden !important; overflow-y: auto !important;
    border: 0 !important; background: #fff !important; box-shadow: 0 0 40px rgba(15, 23, 42, .25); list-style: none; text-align: left;
    font-family: var(--gsp-font-text); -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(-102%); visibility: hidden; opacity: 1 !important; transition: transform .25s ease, visibility 0s linear .25s;
  }
  .gsp-nav .mobile_nav.opened .et_mobile_menu { transform: none; visibility: visible; transition: transform .25s ease; }
  /* Elementele de categorie din bara desktop (Sobe tip turn, Sobe cu plită, Șeminee pictate) sunt deja în grupul „Categorii” al panoului mobil */
  .gsp-nav .et_mobile_menu > li.gsp-desktop-only { display: none !important; }
  .admin-bar .et-l--header .gsp-nav .gsp-menu .et_mobile_menu { top: 46px !important; }
  .gsp-mm-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .55); }
  .gsp-menu-open .gsp-mm-backdrop { display: block !important; }
  html.gsp-menu-open, .gsp-menu-open body { overflow: hidden; }

  .gsp-nav .et_mobile_menu li { position: relative; display: block; flex: none; margin: 0; padding: 0; list-style: none; }
  .gsp-nav .et_mobile_menu li a {
    display: flex; align-items: center; min-height: 48px; padding: 0 56px 0 20px !important; border: 0 !important; border-bottom: 1px solid #f0edef !important;
    background: transparent !important; color: #1c1b1d !important; font: 500 15px/22px var(--gsp-font-text) !important; letter-spacing: 0; text-transform: none; text-decoration: none; opacity: 1 !important;
  }
  .gsp-nav .et_mobile_menu li.current-menu-item > a { box-shadow: inset 3px 0 0 var(--gsp-primary-deep); background: #f6f2f5 !important; color: var(--gsp-primary-deep) !important; font-weight: 600 !important; }
  /* Panel header: logo + close (added by js/custom.js). */
  .gsp-nav .et_mobile_menu li.gsp-mm-head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--gsp-line-soft); background: #fcf8fa;
  }
  .gsp-mm-head img { display: block; width: auto; height: 40px; }
  .gsp-mm-close {
    display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin-left: auto; padding: 0;
    border: 0; border-radius: 50%; background: #f0edef; color: #40484e; font: 400 22px/1 var(--gsp-font-text); cursor: pointer;
  }
  /* Sub-menus are collapsed until their toggle is pressed. */
  .gsp-nav .et_mobile_menu ul.sub-menu { display: none !important; margin: 0; padding: 0 !important; background: #faf8f9 !important; list-style: none; }
  .gsp-nav .et_mobile_menu li.is-open > ul.sub-menu { display: block !important; }
  .gsp-nav .et_mobile_menu ul.sub-menu li a { padding-left: 34px !important; font-size: 14px !important; font-weight: 400 !important; }
  .gsp-nav .et_mobile_menu ul.sub-menu ul.sub-menu li a { padding-left: 48px !important; color: #40484e !important; font-size: 13px !important; }
  .gsp-mm-toggle {
    position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 52px; height: 48px; padding: 0;
    border: 0; border-left: 1px solid #f0edef; background: transparent; color: #71787f; cursor: pointer;
  }
  .gsp-mm-toggle::before {
    content: ""; width: 10px; height: 6px; background: currentColor; transition: transform .2s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .gsp-nav .et_mobile_menu li.is-open > .gsp-mm-toggle { color: var(--gsp-primary-deep); }
  .gsp-nav .et_mobile_menu li.is-open > .gsp-mm-toggle::before { transform: rotate(180deg); }
  .gsp-nav .et_mobile_menu li.is-open > a { background: var(--gsp-info-tint) !important; color: var(--gsp-primary-deep) !important; }
  /* Special entries keep a hint of their desktop look. */
  .gsp-nav .et_mobile_menu > li.gsp-menu-cats > a { color: var(--gsp-primary-deep) !important; font-weight: 700 !important; letter-spacing: .4px; text-transform: uppercase; }
  .gsp-nav .et_mobile_menu > li.gsp-mm-phone { margin-top: auto; }
  .gsp-nav .et_mobile_menu > li.gsp-mm-phone > a { border-top: 1px solid #e5e1e4 !important; background: #f6f2f5 !important; color: var(--gsp-primary-deep) !important; }

  /* Bottom bar (custom module gsp/mobile-bar, last section of the footer) */
  .gsp-bottomnav {
    display: flex !important; align-items: center; justify-content: space-evenly; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
    height: 76px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gsp-line-soft); background: #fffeff;
    font-family: var(--gsp-font-text);
  }
  .gsp-bottomnav a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; height: 40px; padding: 0 12px;
    border: 0; border-radius: 36px; background: transparent; color: #40484e; font: 500 14px/20px var(--gsp-font-text); text-decoration: none; cursor: pointer;
  }
  .gsp-bottomnav span { display: none; }
  .gsp-bottomnav .is-current { padding: 0 16px; background: var(--gsp-primary); color: #fff; }
  .gsp-bottomnav .is-current span { display: inline; }
  /* the cart's count badge (refreshed by WooCommerce's cart fragments) */
  .gsp-bottomnav__cart { position: relative; }
  .gsp-bottomnav .gsp-tool__badge { display: block; top: 0; right: 4px; }
  .gsp-bottomnav .is-current .gsp-tool__badge { right: 2px; }
  .gsp-bottomnav .gsp-tool__badge.is-empty { display: none; }
}

/* Visual Builder: the bottom bar is position:fixed on phones; keep it in the flow
   there so it can be selected. */
.gsp-vb-preview .gsp-bottomnav { position: static; }

/* Sigle în coloana „Suport” din subsol (ANPC SAL, Netopia, Firmă de încredere) */
.gsp-footer__cols .et_pb_text p.gsp-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 0; }
.gsp-badges a { display: inline-flex; line-height: 0; }
.gsp-badges img { height: 52px; width: auto; max-width: 100%; display: block; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.gsp-badges img[src$=".svg"] { height: 32px; border-radius: 0; box-shadow: none; margin: 6px 0; }
@media (max-width: 1024px) { .gsp-footer__cols .et_pb_text p.gsp-badges { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; } }
