/* ============================================
   NXA.HU — Custom CSS (UNAS Admin Panel)
   Optimized v2 — 2026-02-28
   ============================================ */

/* ============================================
   CART ITEMS (Offcanvas cart)
   ============================================ */
.cart-item,
.cart-product,
.offcanvas-cart-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(240, 248, 255, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

.shadow-premium {
    box-shadow: 0 10px 40px rgba(41, 173, 219, 0.12);
}

.transition-smooth {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   HEADER OVERRIDES — thinner, tighter
   ============================================ */
html body .header {
  padding-top: 4px;
  padding-bottom: 4px;
}

html body .header__top {
  padding: 2px 0;
  font-size: 12px;
}

html body .header__middle {
  padding: 6px 0;
}

html body .header__bottom {
  padding: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

html body .header__logo img {
  max-height: 44px;
}

/* Tighter search bar */
html body .header__search-form .form-control {
  height: 38px;
  font-size: 14px;
  border-radius: 20px;
  padding-left: 16px;
}

html body .header__search-form .btn {
  height: 38px;
  border-radius: 0 20px 20px 0;
}

/* Smaller header buttons */
html body .header__buttons-wrapper .btn {
  padding: 6px 10px;
  font-size: 13px;
}

html body .header__buttons-wrapper svg {
  width: 20px;
  height: 20px;
}

/* Tighter nav links */
html body .header__nav .nav-link,
html body .plus-menus .nav-link {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================
   CATEGORY GRID — Muziker-style tiles
   ============================================ */
html body .nxa-cat-grid {
  padding: 32px 0 24px;
}

html body .nxa-cat-grid__group {
  margin-bottom: 28px;
}

html body .nxa-cat-grid__group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #192c80;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

html body .nxa-cat-grid__group-icon {
  flex-shrink: 0;
}

html body .nxa-cat-grid__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

@media (min-width: 576px) {
  html body .nxa-cat-grid__tiles {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }
}

@media (min-width: 992px) {
  html body .nxa-cat-grid__tiles {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 14px;
  }
}

html body .nxa-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

html body .nxa-cat-tile:hover {
  background: #fff;
  border-color: #29addb;
  box-shadow: 0 2px 12px rgba(41, 173, 219, 0.12);
  transform: translateY(-2px);
}

html body .nxa-cat-tile__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html body .nxa-cat-tile__label {
  font-size: 12px;
  font-weight: 600;
  color: #37474f;
  line-height: 1.3;
}

html body .nxa-cat-tile:hover .nxa-cat-tile__label {
  color: #192c80;
}

/* ============================================
   #1 — Category text boxes: subtle green glow
   ============================================ */
html body .start-categories a,
html body .start-cat-offer a {
  box-shadow: 0 1px 8px rgba(9, 178, 3, 0.1);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

html body .start-categories a:hover,
html body .start-cat-offer a:hover {
  box-shadow: 0 2px 14px rgba(9, 178, 3, 0.18);
  transform: translateY(-1px);
}

/* #2 — Cart icon: warm cream */
html body .offcanvas-box-cart-open-btn svg {
  color: #FDFFDB;
  fill: #FDFFDB;
}

/* #3 — Login icon: blue */
html body .box-login__offcanvas-btn svg,
html body .box-login__offcanvas-btn svg use {
  color: #29addb;
  fill: #29addb;
}

/* #4 — "New" product badge: light green */
html body .badge--new {
  background: linear-gradient(135deg, #d9ff8f, #c5f57a);
  color: #192c80;
}

/* #6a — Sidebar menu: thin underline on hover */
html body .offcanvas--box-cat .nav-link,
html body #offcanvas-body-box-cat-0 .nav-link {
  position: relative;
}

html body .offcanvas--box-cat .nav-link::after,
html body #offcanvas-body-box-cat-0 .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #29addb;
  transition: width 0.4s ease;
}

html body .offcanvas--box-cat .nav-link:hover::after,
html body #offcanvas-body-box-cat-0 .nav-link:hover::after {
  width: 100%;
}

/* #6b — Header nav: thin underline */
html body .header .nav-link,
html body .header__nav .nav-link,
html body .plus-menus .nav-link {
  position: relative;
}

html body .header .nav-link::after,
html body .header__nav .nav-link::after,
html body .plus-menus .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: rgba(41, 173, 219, 0.45);
  transition: width 0.3s ease, left 0.3s ease;
}

html body .header .nav-link:hover::after,
html body .header__nav .nav-link:hover::after,
html body .plus-menus .nav-link:hover::after {
  width: 80%;
  left: 10%;
}

/* #7 — Heart / Favourite icon */
html body .product__btn-favourite svg,
html body use[href="#icon-heart"] {
  color: rgba(200, 80, 90, 0.55);
  transition: color 0.25s ease;
}

html body .product__btn-favourite:hover svg {
  color: #e53935;
}

html body .product__btn-favourite.is-active svg,
html body .product__btn-favourite.active svg {
  color: #e53935;
}

/* #8 — Product tooltip icon: green */
html body .product__btn-tooltip svg,
html body .product__btn-tooltip svg use {
  color: #0BC904;
  fill: #0BC904;
}

/* #9 — Hamburger menu button */
html body #offcanvas-box-cat-0-open-btn {
  background: #ffffff;
  border: 2px solid #192c80;
  border-radius: 10px;
  padding: 8px 10px;
  position: relative;
  overflow: visible;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html body #offcanvas-box-cat-0-open-btn svg { display: none; }

html body #offcanvas-box-cat-0-open-btn::before,
html body #offcanvas-box-cat-0-open-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #29addb;
  border-radius: 3px;
  pointer-events: none;
}

html body #offcanvas-box-cat-0-open-btn::before {
  top: calc(50% - 6px);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: nxaWave1 2.5s ease-in-out infinite;
}

html body #offcanvas-box-cat-0-open-btn::after {
  top: calc(50% + 4px);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: nxaWave3 2.5s ease-in-out infinite 0.4s;
}

@keyframes nxaWave1 {
  0%, 100% { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
  50% { border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
}

@keyframes nxaWave3 {
  0%, 100% { border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
  50% { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
}

/* Hamburger tooltip */
html body .nxa-hamburger-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #192c80;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

html body .nxa-hamburger-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #192c80;
}

html body .nxa-hamburger-tooltip.show { opacity: 1; }

/* #11 — Scroll-to-top */
html body #scroll-to-top-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(25, 44, 128, 0.15);
  color: #546e7a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html body #scroll-to-top-btn:hover {
  background: rgba(41, 173, 219, 0.08);
  border-color: rgba(41, 173, 219, 0.3);
}

html body #scroll-to-top-btn svg {
  color: #546e7a;
  fill: #546e7a;
  opacity: 0.6;
}

/* #11.5 — Product detail buttons */
html body #page_artdet_func_compare {
  background: rgba(41, 173, 219, 0.08);
  border-color: rgba(41, 173, 219, 0.3);
  color: #29addb;
}

html body #page_artdet_func_compare:hover {
  background: #29addb;
  color: #ffffff;
  border-color: #29addb;
}

html body #page_artdet_func_compare svg { color: #29addb; }
html body #page_artdet_func_compare:hover svg { color: #ffffff; }

html body #page_artdet_func_favourites {
  background: rgba(229, 57, 53, 0.06);
  border-color: rgba(229, 57, 53, 0.3);
}

html body #page_artdet_func_favourites svg,
html body #page_artdet_func_favourites svg use {
  color: #e53935;
}

html body #page_artdet_func_favourites:hover {
  background: transparent;
  border-color: rgba(200, 200, 200, 0.4);
}

html body #page_artdet_func_question {
  background: rgba(11, 201, 4, 0.06);
  border-color: rgba(11, 201, 4, 0.25);
  color: #09b203;
}

html body #page_artdet_func_question:hover {
  background: rgba(11, 201, 4, 0.12);
  border-color: rgba(11, 201, 4, 0.4);
}

html body #page_artdet_func_question svg { color: #0BC904; }

/* #12 — Fixed cart bottom */
html body .fixed-cart__btn {
  position: relative;
  overflow: hidden;
}

html body .fixed-cart__btn svg {
  width: 24px;
  height: 24px;
}

/* #13 — Stock icon: green */
html body .artdet__stock svg,
html body .artdet__stock svg use {
  color: #0BC904;
  fill: #0BC904;
}

/* #14 — Breadcrumb */
html body .breadcrumb {
  font-size: 13px;
  gap: 2px;
}

html body .breadcrumb-item a {
  color: #546e7a;
  transition: color 0.2s ease;
}

html body .breadcrumb-item a:hover { color: #29addb; }

html body .breadcrumb-item.active {
  color: #192c80;
  font-weight: 600;
}

html body .breadcrumb-item + .breadcrumb-item::before {
  content: '\203A';
  color: rgba(41, 173, 219, 0.35);
  font-weight: 300;
}

html body .breadcrumb--home svg {
  color: #29addb;
  opacity: 0.65;
  width: 14px;
  height: 14px;
}

/* #15 — Rating/social button */
html body .artdet__rating-and-social-outer .btn svg path.fa-primary {
  fill: #b0bec5;
  opacity: 0.6;
}

html body .artdet__rating-and-social-outer .btn:hover svg path.fa-primary {
  fill: #78909c;
  opacity: 1;
}

html body .artdet__rating-and-social-outer .btn {
  background: rgba(200, 200, 200, 0.12);
  border-color: rgba(200, 200, 200, 0.3);
}

html body .artdet__rating-and-social-outer .btn:hover { background: rgba(200, 200, 200, 0.2); }

/* #16 — Logo hover */
html body #header_logo_img a,
html body .header__logo a {
  transition: transform 0.35s ease;
  display: inline-block;
}

html body #header_logo_img a:hover,
html body .header__logo a:hover {
  transform: scale(1.02);
}

/* #17 — Pagination buttons */
html body .artdet__pagination-prev {
  border-left: 3px solid #29addb;
  transition: all 0.25s ease;
}

html body .artdet__pagination-next {
  border-right: 3px solid #29addb;
  transition: all 0.25s ease;
}

html body .artdet__pagination-prev:hover { transform: translateX(-2px); border-left-color: #1976d2; }
html body .artdet__pagination-next:hover { transform: translateX(2px); border-right-color: #1976d2; }

/* ============================================
   COOKIE BANNER
   ============================================ */
html body .cookie-bar .btn-settings,
html body .cookie-bar__btn--settings,
html body [class*="cookie"] [class*="settings"] {
  background: transparent;
  color: rgba(100, 100, 100, 0.4);
  border: 1px solid rgba(150, 150, 150, 0.15);
  font-size: 0.85em;
}

html body .cookie-bar .btn-necessary,
html body .cookie-bar__btn--necessary,
html body [class*="cookie"] [class*="necessary"],
html body [class*="cookie"] [class*="required"] {
  background: transparent;
  color: rgba(80, 80, 80, 0.55);
  border: 1.5px solid rgba(120, 120, 120, 0.3);
}

html body .cookie-bar .btn-accept,
html body .cookie-bar__btn--accept,
html body [class*="cookie"] [class*="accept-all"],
html body [class*="cookie"] .btn-primary,
html body [class*="cookie"] .btn-success {
  background: linear-gradient(135deg, #09b203 0%, #07a002 100%);
  color: #ffffff;
  border: 2px solid #09b203;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(9, 178, 3, 0.25);
  transition: all 0.3s ease;
}

html body .cookie-bar .btn-accept:hover,
html body .cookie-bar__btn--accept:hover,
html body [class*="cookie"] [class*="accept-all"]:hover,
html body [class*="cookie"] .btn-primary:hover,
html body [class*="cookie"] .btn-success:hover {
  background: linear-gradient(135deg, #0bc904 0%, #09b203 100%);
  box-shadow: 0 6px 24px rgba(9, 178, 3, 0.35);
  transform: translateY(-1px);
}

/* Stock status */
html body .artdet__stock span,
html body .artdet__stock .badge,
html body .artdet__stock > div > span {
  background: #FFF8E7;
  padding: 3px 10px;
  border-radius: 6px;
}

/* Price styling */
html body .artdet__price--special,
html body .artdet__price-value,
html body [id^="price_net_brutto"] {
  font-size: calc(1em + 1px);
}

html body .price-currency {
  font-weight: 400;
  font-size: calc(1em - 2px);
}

/* Order button icon: orange */
html body #new_art_order_top svg,
html body #new_art_order_top svg use {
  color: #f57c00;
  fill: #f57c00;
  transition: color 0.2s ease;
}

html body #new_art_order_top:hover svg,
html body #new_art_order_top:hover svg use {
  color: #e65100;
  fill: #e65100;
}

/* View chooser */
html body .view-select__btn {
  background: transparent;
  border: 1.5px solid rgba(180, 180, 180, 0.4);
  color: #90a4ae;
  transition: all 0.2s ease;
}

html body .view-select__btn svg { color: #90a4ae; fill: #90a4ae; }

html body .view-select__btn.active,
html body .view-select__btn.is-active,
html body .view-select__btn[aria-pressed="true"] {
  background: #29addb;
  border-color: #29addb;
  color: #ffffff;
}

html body .view-select__btn.active svg,
html body .view-select__btn.is-active svg,
html body .view-select__btn[aria-pressed="true"] svg {
  color: #ffffff;
  fill: #ffffff;
}

/* Product names: bigger, dark blue */
html body .product__name a,
html body .product__name-wrap h2 a,
html body .product-name a {
  color: #192c80;
  font-size: calc(1em + 1px);
}

/* Product card hover */
html body .product:hover,
html body .product-card:hover {
  background: #ffffff;
  box-shadow: none;
  outline: 1px solid rgba(180, 180, 180, 0.35);
  border-radius: 8px;
}

html body .product .product__function-btns,
html body .product-card .product__function-btns {
  background: transparent;
}

/* ============================================
   EXIT INTENT POPUP
   ============================================ */
html body .nxa-exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 27, 51, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

html body .nxa-exit-popup.show { opacity: 1; visibility: visible; }

html body .nxa-exit-popup__box {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

html body .nxa-exit-popup.show .nxa-exit-popup__box { transform: translateY(0); }

html body .nxa-exit-popup__title {
  font-size: 20px;
  font-weight: 800;
  color: #192c80;
  margin: 0 0 10px;
}

html body .nxa-exit-popup__text {
  font-size: 14px;
  color: #546e7a;
  line-height: 1.6;
  margin: 0 0 20px;
}

html body .nxa-exit-popup__cta {
  display: inline-block;
  background: linear-gradient(135deg, #09b203, #07a002);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

html body .nxa-exit-popup__cta:hover {
  background: linear-gradient(135deg, #0bc904, #09b203);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(9, 178, 3, 0.3);
}

html body .nxa-exit-popup__close {
  display: block;
  margin-top: 14px;
  background: none;
  border: none;
  color: #90a4ae;
  font-size: 12px;
  cursor: pointer;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
html body .nxa-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

html body .nxa-loading-overlay.show { opacity: 1; visibility: visible; }

html body .nxa-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(41, 173, 219, 0.2);
  border-top-color: #29addb;
  border-radius: 50%;
  animation: nxaSpin 0.8s linear infinite;
}

@keyframes nxaSpin { to { transform: rotate(360deg); } }

html body .nxa-loading-text {
  font-size: 14px;
  color: #192c80;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.3s ease;
}

/* ============================================
   GENERAL OVERRIDES
   ============================================ */
html body .container {
  max-width: 1320px;
}

html body .carousel-indicators {
  margin-bottom: 8px;
}

html body .product-list--grid .product {
  border-radius: 8px;
}

html body .footer {
  padding-top: 32px;
  padding-bottom: 24px;
  font-size: 13px;
}

html body .footer__header {
  font-size: 14px;
  font-weight: 700;
}

html body .offcanvas--box-cat .offcanvas-header {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

html body .offcanvas--box-cat .offcanvas-body {
  padding: 8px 0;
}

html body .offcanvas--box-cat .nav-link {
  padding: 8px 16px;
  font-size: 14px;
}

/* ============================================
   QUICK-LINKS FOOTER SECTION
   ============================================ */
html body .nxa-quick-links {
  padding: 48px 0 56px;
  background: #f5f6f8;
  border-top: 1px solid #e5e7eb;
}

html body .nxa-quick-links .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

html body .nxa-quick-links__heading {
  font-size: 16px;
  font-weight: 700;
  color: #192c80;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #29addb;
  display: inline-block;
}

html body .nxa-quick-links__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

html body .nxa-quick-links__item {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

html body .nxa-quick-links__item:hover {
  background: #e8f4fd;
  color: #192c80;
  text-decoration: none;
}

@media (max-width: 768px) {
  html body .nxa-quick-links .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  html body .nxa-quick-links__list {
    grid-template-columns: 1fr;
  }
}

/* Hide UNAS default start_category_offer */
html body .start-category-offer,
html body .element-start-categories {
  display: none !important;
}
