/**
 * LG Derma theme — SmartStore-derived layout (Bootstrap 5 local, no framework CDN).
 * Fonts: Google Fonts (Roboto / Montserrat / Poppins) enqueued in _main.php.
 */
:root {
  --background-color: #ffffff;
  --accent-color: #0559b7;
  --heading-color: #000000;
  --default-color: #484a4d;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --on-accent: #ffffff;
  --muted-bg: #edf2f8;
  --section-alt: #f4f7fa;
  --map-bg: #e8f0fa;
  --success: #198754;
  --success-bg: #e8f6ee;
  --danger: #dc3545;
  /* Edit-mode outlines/pending markers: ProcessWire brand red, applied globally */
  --fe-edit-outline: #eb1d61;
  --border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  --border-strong: color-mix(in srgb, var(--default-color), transparent 85%);
  --nav-color: rgba(255, 255, 255, 0.8);
  --nav-hover-color: #ffffff;
  --nav-dropdown-color: #484a4d;
  --nav-dropdown-hover-color: #0559b7;
  --nav-dropdown-background-color: #ffffff;
  --nav-mobile-background-color: #ffffff;
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

.light-background {
  --background-color: var(--muted-bg);
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #232424;
  --contrast-color: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--default-font);
  color: var(--default-color);
  background: var(--background-color, #fff);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), black 15%);
}

/* ---------- Header ---------- */
.header {
  z-index: 997;
  background: var(--surface-color);
  position: relative;
}

.header .header-bar {
  background: var(--surface-color);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.header .header-bar .logo {
  flex-shrink: 0;
  line-height: 1;
  color: inherit;
}

.header .header-bar .logo h1,
.header .header-bar .logo .sitename {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.header .header-bar .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .header-bar .header-search {
  flex: 1;
  max-width: 560px;
  margin: 0 24px;
  display: flex;
  border: 2px solid var(--border-strong);
  border-radius: 50px;
  overflow: hidden;
}

.header .header-bar .header-search:focus-within {
  border-color: var(--accent-color);
}

.header .header-bar .header-search .search-input {
  flex: 1;
  border: none;
  padding: 11px 20px;
  font-size: 14px;
  background: transparent;
  color: var(--default-color);
}

.header .header-bar .header-search .search-input:focus {
  outline: none;
}

.header .header-bar .header-search .search-btn {
  background: var(--accent-color);
  border: none;
  padding: 0 20px;
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .header-bar .header-search .search-btn:hover {
  background: color-mix(in srgb, var(--accent-color), black 10%);
}

.header .header-bar .quick-links {
  gap: 4px;
  flex-shrink: 0;
}

.header .header-bar .quick-links .quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--default-color);
}

.header .header-bar .quick-links .quick-link:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
}

.header .header-bar .header-actions {
  gap: 2px;
  flex-shrink: 0;
}

.header .header-bar .header-actions .action-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--default-color);
  cursor: pointer;
  text-decoration: none;
}

.header .header-bar .header-actions .action-icon:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
}

.header .header-nav {
  background: var(--accent-color);
  padding: 0;
}

@media (max-width: 1200px) {
  .header .header-bar .header-search { max-width: 400px; }
}

@media (max-width: 768px) {
  .header .header-bar .logo h1,
  .header .header-bar .logo .sitename { font-size: 20px; }
}

/* ---------- Navmenu (desktop ≥1200px — uppercase only here) ---------- */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    list-style: none;
    align-items: center;
  }

  .navmenu li { position: relative; }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 14px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .navmenu a i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a { padding-right: 0; }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--surface-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    list-style: none;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a:hover {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

/* ---------- Navmenu - Mobile (SmartStore) ---------- */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--default-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    margin-left: 15px;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background: var(--surface-color);
    overflow-y: auto;
    z-index: 9998;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color) !important;
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-transform: none;
    letter-spacing: normal;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    flex-shrink: 0;
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--on-accent);
  }

  .navmenu a:hover,
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus,
  .navmenu .dropdown ul a:hover {
    color: var(--nav-dropdown-hover-color) !important;
  }

  .navmenu .dropdown ul,
  .navmenu .dropdown ul ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    border-radius: 4px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    left: auto;
    top: auto;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
    margin-top: 0;
  }

  .navmenu .dropdown > ul.dropdown-active {
    display: block;
  }

  .navmenu .dropdown > a.dropdown-active {
    background-color: rgba(33, 37, 41, 0.03);
  }

  .navmenu .dropdown > a.active {
    background-color: rgba(33, 37, 41, 0.03);
  }

  .navmenu .dropdown > a.active i,
  .navmenu .dropdown > a.dropdown-active i {
    background-color: var(--accent-color);
    color: var(--on-accent);
    transform: rotate(180deg);
  }

  .mobile-nav-active { overflow: hidden; }

  .mobile-nav-active .mobile-nav-toggle {
    color: var(--on-accent);
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    z-index: 9997;
  }

  .mobile-nav-active .navmenu > ul { display: block; }

  .navmenu > ul {
    padding-top: 10px;
  }

  .navmenu .mobile-nav-search-item {
    display: none;
    position: static;
    list-style: none;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 5px;
  }

  .mobile-nav-active .navmenu .mobile-nav-search-item {
    display: block;
  }

  .mobile-nav-search .search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border-radius: 20px;
    padding: 0 14px;
  }

  .mobile-nav-search .search-wrap > i.bi-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nav-dropdown-color);
    pointer-events: none;
  }

  .mobile-nav-search .form-control {
    padding-left: 36px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 15px;
    color: var(--nav-dropdown-color);
  }

  .mobile-nav-search .form-control:focus {
    box-shadow: none;
    background: transparent;
  }

  .mobile-nav-search .search-btn {
    border: 0;
    background: transparent;
    color: var(--nav-dropdown-color);
    padding: 0 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .mobile-nav-search .search-btn i {
    position: static;
    transform: none;
  }
}

@media (min-width: 1200px) {
  .navmenu .mobile-nav-search-item { display: none !important; }
}

/* ---------- Footer ---------- */
.footer {
  color: var(--default-color);
  background: var(--background-color, #111);
  font-size: 14px;
  position: relative;
}

.footer.dark-background {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #232424;
  --contrast-color: #ffffff;
}

.footer .footer-main {
  padding: 70px 0 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
}

.footer .footer-main .footer-widget { margin-bottom: 30px; }

.footer .footer-main .footer-widget .logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer .footer-main .footer-widget .logo .sitename,
.footer .footer-main .footer-widget .logo span {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  font-family: var(--heading-font);
  letter-spacing: 0.5px;
}

.footer .footer-main .footer-widget p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.footer .footer-main .footer-widget h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  color: var(--heading-color);
}

.footer .footer-main .footer-widget h4:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
}

.footer .footer-main .footer-widget h5 {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
}

.footer .footer-main .footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer .footer-main .footer-contact .contact-item i {
  color: var(--accent-color);
  font-size: 18px;
  margin-right: 12px;
  margin-top: 3px;
}

.footer .footer-main .footer-contact .contact-item span {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  line-height: 1.5;
}

.footer .footer-main .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-main .footer-links li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
}

.footer .footer-main .footer-links li:before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
}

.footer .footer-main .footer-links a { color: color-mix(in srgb, var(--default-color), transparent 30%); }
.footer .footer-main .footer-links a:hover { color: var(--accent-color); }

.footer .footer-bottom { padding: 25px 0; }
.footer .footer-bottom .copyright p { margin-bottom: 0; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.footer .footer-bottom .legal-line {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  max-width: 36rem;
}
.contact-2 .detail-item .legal-info { font-size: 14px; line-height: 1.5; }
.footer .footer-bottom .credits { font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 40%); }
.footer .footer-bottom .credits a { color: var(--accent-color); }
.footer .footer-bottom .payment-methods .payment-icons { display: flex; gap: 12px; }
.footer .footer-bottom .payment-methods .payment-icons i {
  font-size: 22px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}
.footer .footer-bottom .payment-methods .payment-icons i:hover { color: var(--accent-color); }
.footer .footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer .footer-bottom .legal-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 13px;
}
.footer .footer-bottom .legal-links a:hover { color: var(--accent-color); }

@media (max-width: 767.98px) {
  .footer .footer-main .footer-widget { text-align: center; }
  .footer .footer-main .footer-widget h4:after { left: 50%; transform: translateX(-50%); }
  .footer .footer-main .footer-contact .contact-item { justify-content: center; }
  .footer .footer-main .footer-links li { padding-left: 0; }
  .footer .footer-main .footer-links li:before { display: none; }
  .footer .footer-bottom .copyright,
  .footer .footer-bottom .credits { text-align: center; }
}

/* ---------- Page title ---------- */
.page-title {
  color: var(--default-color);
  background: var(--surface-color);
  padding: 25px 0;
  position: relative;
}

.page-title.light-background { background: var(--muted-bg); }
.page-title h1, .page-title h2 { font-size: 24px; font-weight: 700; margin: 0; }

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.page-title .breadcrumbs ol li + li { padding-left: 10px; }

.page-title .breadcrumbs ol li + li:before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* ---------- Sections ---------- */
section,
.section {
  color: var(--default-color);
  background: var(--background-color, #fff);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

section.light-background,
.section.light-background {
  background: var(--muted-bg);
  --background-color: var(--muted-bg);
}

@media (max-width: 1199px) {
  section,
  .section { scroll-margin-top: 66px; }
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p { margin-bottom: 0; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--surface-color);
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
  animation: preloader-autohide 0.01s linear 2.5s forwards;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

#preloader:before {
  content: "";
  position: absolute;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--surface-color);
  border-color: var(--accent-color, var(--accent-color)) transparent var(--accent-color, var(--accent-color)) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloader-autohide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  background: radial-gradient(ellipse at 20% 40%, color-mix(in srgb, var(--accent-color), transparent 90%), var(--background-color, #fff) 60%);
  position: relative;
  overflow: hidden;
}

.hero .headline-block {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 88%), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .tagline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  padding: 8px 28px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero .main-heading {
  font-size: clamp(32px, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero .lead-text {
  font-size: 1.12rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero .cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-explore {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: 0.3s;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.btn-explore:hover {
  background: color-mix(in srgb, var(--accent-color), black 10%);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.btn-outline-explore {
  display: inline-block;
  padding: 13px 36px;
  background: var(--surface-color, #fff);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-outline-explore:hover {
  background: var(--surface-color, #fff);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.hero .showcase-card {
  display: block;
  background: var(--surface-color, #fff);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s;
  margin-bottom: 8px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hero .showcase-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 40%);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.hero .showcase-card.elevated {
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

@media (min-width: 992px) {
  .hero .showcase-card.elevated { transform: scale(1.05); }
  .hero .showcase-card.elevated:hover { transform: scale(1.05) translateY(-8px); }
}

.hero .showcase-card .card-visual {
  position: relative;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.hero .showcase-card .card-visual img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: 0.5s;
}

.hero .showcase-card:hover .card-visual img { transform: scale(1.08); }

.hero .showcase-card .card-visual .label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.hero .showcase-card .card-visual .label.hot {
  background: color-mix(in srgb, var(--accent-color), black 25%);
}

.hero .showcase-card .card-details { padding: 24px; }
.hero .showcase-card .card-details h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.hero .showcase-card .card-details h4 a { color: var(--heading-color); }
.hero .showcase-card .card-details h4 a:hover { color: var(--accent-color); }
.hero .showcase-card .pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hero .showcase-card .pricing .now {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}
.hero .showcase-card .pricing .was {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: line-through;
}

.hero .perks-strip {
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 16px;
  padding: 28px 20px;
}

.hero .perks-strip .perk {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
  padding: 8px;
}

.hero .perks-strip .perk i {
  font-size: 1.4rem;
  color: var(--accent-color);
}

.hero .perks-strip .perk span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 50px; }
  .hero .main-heading { font-size: 2.4rem; }
  .hero .perks-strip .perk {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Banner / tiles ---------- */
.promo-cards .featured-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
}

.promo-cards .featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: 0.5s;
}

.promo-cards .featured-banner:hover img { transform: scale(1.05); }

.promo-cards .featured-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

.promo-cards .featured-banner .banner-content {
  position: relative;
  z-index: 2;
  padding: 50px;
  max-width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-cards .featured-banner .badge-label {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-color);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.promo-cards .featured-banner h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--on-accent);
}

.promo-cards .featured-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
  max-width: 480px;
}

.promo-cards .featured-banner .btn-explore {
  align-self: flex-start;
  background: var(--surface-color);
  color: var(--accent-color);
  box-shadow: none;
}

.promo-cards .featured-banner .btn-explore:hover {
  background: var(--accent-color);
  color: var(--on-accent);
}

@media (max-width: 992px) {
  .promo-cards .featured-banner { height: 360px; }
  .promo-cards .featured-banner .banner-content { max-width: 70%; padding: 36px; }
  .promo-cards .featured-banner h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .promo-cards .featured-banner { height: 300px; }
  .promo-cards .featured-banner .banner-content { max-width: 100%; padding: 28px; }
  .promo-cards .featured-banner::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 100%);
  }
}

@media (max-width: 576px) {
  .promo-cards .featured-banner { height: 280px; }
}

.featured-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background: var(--map-bg);
}

.featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.featured-banner .banner-content {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  max-width: 480px;
}

.featured-banner .badge-label {
  display: inline-block;
  background: var(--accent-color);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.featured-banner h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.featured-banner p { color: var(--default-color); margin-bottom: 20px; }

.collection-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
  background: #ddd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  height: 100%;
}

.collection-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: 0.5s;
}

.collection-tile:hover img { transform: scale(1.05); }

.collection-tile .tile-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--on-accent);
}

.collection-tile .tile-content h4 { color: var(--on-accent); font-size: 18px; margin-bottom: 4px; }
.collection-tile .item-count { font-size: 13px; opacity: 0.85; display: block; margin-bottom: 8px; }
.collection-tile .tile-link { color: var(--on-accent); font-weight: 600; font-size: 14px; }

/* ---------- Product cards ---------- */
.product-grid-card {
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.product-grid-card .product-image {
  position: relative;
  overflow: hidden;
  background: var(--section-alt);
  aspect-ratio: 1 / 1;
}

.product-grid-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.product-grid-card:hover .product-image img { transform: scale(1.05); }
.product-grid-card .product-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-grid-card .product-info h5 { font-size: 16px; margin-bottom: 6px; color: var(--heading-color); }
.product-grid-card:hover .product-info h5 { color: var(--accent-color); }
.product-grid-card .product-info .price { color: var(--accent-color); font-weight: 700; font-size: 15px; margin-bottom: 10px; }

.btn-view {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}

.product-grid-card:hover .btn-view {
  background: var(--accent-color);
  color: var(--on-accent);
}

.catalog-card {
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  transition: 0.3s;
  height: 100%;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.catalog-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 220px;
  background: var(--section-alt);
}

.catalog-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.catalog-card:hover .card-img-wrapper img { transform: scale(1.04); }

.catalog-card .card-img-wrapper .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-color);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}

.catalog-card .card-details { padding: 20px; }
.catalog-card .label { font-size: 12px; font-weight: 600; color: var(--accent-color); text-transform: uppercase; letter-spacing: 0.5px; }
.catalog-card .title { font-size: 18px; font-weight: 700; margin: 8px 0; }
.catalog-card .title a { color: var(--heading-color); }
.catalog-card .title a:hover { color: var(--accent-color); }
.catalog-card .pricing { font-size: 18px; font-weight: 700; color: var(--heading-color); margin: 8px 0; }

.catalog-card .shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.catalog-card .shop-btn:hover {
  background: var(--accent-color);
  color: var(--on-accent);
}

/* ---------- Product detail ---------- */
.detail-tabs .tab-links {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-strong);
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.detail-tabs .tab-links .nav-link {
  border: none;
  background: none;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--default-color);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.detail-tabs .tab-links .nav-link.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.gallery-wrapper { display: flex; flex-direction: column; gap: 14px; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 992px) {
  .gallery-wrapper { flex-direction: row; align-items: flex-start; }
  .gallery-thumbs {
    flex-direction: column;
    flex-wrap: nowrap;
    order: -1;
    width: 80px;
    flex-shrink: 0;
  }
}

.gallery-thumbs .thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.75;
  background: var(--section-alt);
}

.gallery-thumbs .thumb-item.active,
.gallery-thumbs .thumb-item:hover {
  border-color: var(--accent-color);
  opacity: 1;
}

.gallery-thumbs .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main { flex: 1; min-width: 0; }

.gallery-main .main-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--section-alt);
  aspect-ratio: 1 / 1;
}

.gallery-main .main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--surface-color);
  color: var(--heading-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: 0.25s;
}

.image-nav-btn:hover {
  background: var(--accent-color);
  color: var(--on-accent);
  opacity: 1;
}

.image-nav-btn.prev-image { left: 14px; }
.image-nav-btn.next-image { right: 14px; }

.product-info .volume-pill {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.product-info .availability-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--default-color), transparent 75%);
}

.product-info .availability-row .in-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}

.product-info .availability-row .in-stock i { font-size: 16px; }

.product-info .availability-row .in-stock.avail-no { color: var(--danger); }

.detail-tabs .tab-content .tab-pane {
  padding: 8px 4px 4px;
}

.detail-tabs .tab-content .desc-body {
  line-height: 1.75;
  color: var(--default-color);
}

.detail-tabs .tab-content .desc-body p { margin-bottom: 14px; }

.gallery-main .sale-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--danger);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  z-index: 2;
}

.product-info .category-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.product-info .item-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.product-info .price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-info .price-block .current-price { font-size: 28px; font-weight: 700; color: var(--heading-color); }

.original-price {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: line-through;}

.product-info .price-block .savings-pill {
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-info .description-text p {
  color: var(--default-color);
  line-height: 1.7;
  margin-bottom: 18px;
}

.product-info .perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.product-info .perks-grid .perk-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--section-alt);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-color);
}

.product-info .perks-grid .perk-card i {
  color: var(--accent-color);
  font-size: 18px;
}

/* ---------- Sidebar / filters (SmartStore category tree) ---------- */
.sidebar .widget-item {
  background: var(--surface-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 18px;
}

.sidebar .widget-title,
.sidebar h3.widget-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.sidebar .category-tree .category-item {
  margin-bottom: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.sidebar .category-tree .category-item:last-child {
  border-bottom: none;
}

.sidebar .category-tree .category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}

.sidebar .category-tree .category-header:not([data-bs-toggle]) {
  cursor: default;
}

.sidebar .category-tree .category-link {
  font-weight: 600;
  color: var(--heading-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sidebar .category-tree .category-link:hover,
.sidebar .category-tree .category-link.active {
  color: var(--accent-color);
}

.sidebar .category-tree .category-header.section-active .category-link {
  color: var(--accent-color);
}

.sidebar .category-tree .category-count {
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.sidebar .category-tree .category-link.active .category-count,
.sidebar .category-tree .subcategory-link.active .category-count,
.sidebar .category-tree .category-header.section-active .category-count {
  color: var(--accent-color);
}

.sidebar .category-tree .category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  flex-shrink: 0;
  transition: 0.3s;
}

.sidebar .category-tree .category-toggle:hover {
  background: var(--accent-color);
  color: var(--on-accent);
}

.sidebar .category-tree .category-toggle .bi-chevron-up { display: none; }
.sidebar .category-tree .category-header:not(.collapsed) .category-toggle .bi-chevron-down { display: none; }
.sidebar .category-tree .category-header:not(.collapsed) .category-toggle .bi-chevron-up { display: inline-block; }

.sidebar .category-tree .subcategory-list {
  padding-bottom: 8px;
}

.sidebar .category-tree .subcategory-list .subcategory-link {
  font-size: 14px;
  color: var(--default-color);
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar .category-tree .subcategory-list .subcategory-link:hover,
.sidebar .category-tree .subcategory-list .subcategory-link.active {
  color: var(--accent-color);
}

@media (max-width: 991.98px) {
  .sidebar .widget-item { padding: 16px; }
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface-color);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

/* ---------- Search ---------- */
.search-result-card {
  display: flex;
  gap: 16px;
  background: var(--surface-color);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  transition: 0.3s;
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-result-card .thumb {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--section-alt);
}

.search-result-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-card h4 { font-size: 17px; margin-bottom: 6px; }
.search-result-card h4 a { color: var(--heading-color); }
.search-result-card p { margin: 0; font-size: 14px; color: var(--default-color); }

/* ---------- About ---------- */
.about-2 .intro-content .badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.about-2 .intro-content .main-heading {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-2 .intro-content .lead-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--default-color);
}

.about-2 .media-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-2 .media-wrapper img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.about-2 .media-wrapper .media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 88%), transparent 55%);
  pointer-events: none;
  border-radius: 16px;
}

.about-2 .info-card {
  display: flex;
  gap: 16px;
  background: var(--surface-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

.about-2 .info-card .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.about-2 .info-card h3 { font-size: 18px; margin-bottom: 6px; }
.about-2 .info-card h3 a { color: var(--heading-color); }
.about-2 .info-card p { margin: 0; font-size: 14px; color: var(--default-color); line-height: 1.6; }

.stats .stats-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface-color);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.stats .stats-item i { font-size: 32px; color: var(--accent-color); display: block; margin-bottom: 10px; }
.stats .stats-item span { font-size: 36px; font-weight: 700; color: var(--heading-color); display: block; line-height: 1; }
.stats .stats-item p { margin: 8px 0 0; font-size: 14px; color: var(--default-color); }
.stats .stats-item p strong { display: block; color: var(--heading-color); font-size: 16px; }

/* ---------- Contact ---------- */
.contact-2 .contact-wrapper {
  background: var(--surface-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-2 .details-panel {
  background: var(--accent-color);
  color: var(--on-accent);
  padding: 40px 32px;
  height: 100%;
}

.contact-2 .details-panel h3 { color: var(--on-accent); font-size: 24px; margin-bottom: 10px; }
.contact-2 .details-panel .panel-intro { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; line-height: 1.6; }
.contact-2 .detail-item { display: flex; gap: 14px; margin-bottom: 22px; }

.contact-2 .detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-2 .detail-text h5 { color: var(--on-accent); font-size: 15px; margin-bottom: 4px; }
.contact-2 .detail-text p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.contact-2 .detail-text a { color: var(--on-accent); text-decoration: underline; }

.contact-2 .form-panel { padding: 40px 36px; }
.contact-2 .form-panel h3 { font-size: 24px; margin-bottom: 8px; }
.contact-2 .form-panel .form-subtitle { color: var(--default-color); margin-bottom: 24px; }

.contact-2 .php-email-form .loading {
  display: none;
  color: var(--default-color);
  font-size: 14px;
}

.contact-2 .php-email-form .loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -3px;
  animation: animate-preloader 0.8s linear infinite;
}

.contact-2 .php-email-form .error-message,
.contact-2 .php-email-form .sent-message {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.contact-2 .php-email-form .error-message {
  background: #fdecea;
  color: #b02a37;
  border: 1px solid #f5c2c7;
}

.contact-2 .php-email-form .sent-message {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #a3cfbb;
}

.contact-2 .php-email-form.is-loading .loading { display: block; }
.contact-2 .php-email-form.has-error .error-message { display: block; }
.contact-2 .php-email-form.is-sent .sent-message { display: block; }

.contact-2 .btn-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--on-accent);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
}

.contact-2 .btn-send:hover {
  background: color-mix(in srgb, var(--accent-color), black 10%);
  color: var(--on-accent);
}

.contact-2 .map-strip {
  margin-top: 32px;
  overflow: hidden;
  min-height: 320px;
  background: var(--map-bg);
}

.contact-2 .map-strip iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- Scroll top / edit ---------- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top i { font-size: 24px; color: var(--on-accent); line-height: 0; }
.scroll-top:hover { background: color-mix(in srgb, var(--accent-color), transparent 20%); color: var(--on-accent); }
.scroll-top.active { visibility: visible; opacity: 1; }

#edit-page {
  position: fixed;
  right: 12px;
  bottom: 64px;
  z-index: 99998;
  background: var(--accent-color);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#edit-page:hover {
  color: var(--on-accent);
  background: color-mix(in srgb, var(--accent-color), black 10%);
}

#fe-manage-products {
  position: fixed;
  right: 12px;
  bottom: 112px;
  z-index: 99998;
  background: var(--surface-color);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

#fe-manage-products:hover {
  background: var(--accent-color);
  color: var(--on-accent);
}

.fe-badge {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: var(--danger);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(220, 53, 69, 0.45);
  animation: fe-badge-blink 1.1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fe-badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

body.fe-edit-mode .pw-edit {
  outline: 1px dashed color-mix(in srgb, var(--fe-edit-outline), transparent 40%);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--fe-edit-outline), transparent 90%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fe-edit-outline), transparent 70%);
  border-radius: 4px;
  transition: background 0.15s ease;
}

body.fe-edit-mode .pw-edit:hover {
  background: color-mix(in srgb, var(--fe-edit-outline), transparent 82%);
}

.fe-manage-images {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: var(--accent-color);
  color: var(--on-accent);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.fe-manage-images:hover {
  color: var(--on-accent);
  background: color-mix(in srgb, var(--accent-color), black 10%);
}

body.fe-edit-mode .fe-manage-images { display: inline-flex; align-items: center; gap: 6px; }

/* Triple class beats PFE's `.pw-edit-buttons-location-auto{bottom:0;left:0}`
   (loaded later, specificity 0-2-0) → bar sits above #edit-page (bottom:64). */
.pw-edit-buttons.pw-edit-buttons.pw-edit-buttons {
  position: fixed;
  right: 12px;
  left: auto;
  bottom: 112px;
  top: auto;
  z-index: 99999;
}

/* Bar shows ONLY "Salva"; "Esci da modifica" acts as cancel/abandon. */
.pw-edit-cancel {
  display: none !important;
}

.fe-availability-select {
  display: none;
  font-size: 14px;
  border: 1px dashed color-mix(in srgb, var(--fe-edit-outline), transparent 30%);
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

body.fe-edit-mode .fe-availability-select { display: inline-block; }
body.fe-edit-mode .fe-availability-display { display: none; }

/* Queued change, not saved yet — waits for "Salva". */
.fe-availability-select.fe-pending {
  border: 1px solid var(--fe-edit-outline);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--fe-edit-outline), transparent 70%);
}

.fe-availability-select.fe-saved {
  border-color: #198754;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
}

/* --- Images popup (Gestisci immagini) --- */

#fe-images-modal .fe-img-body {
  max-height: 58vh;
  overflow: auto;
}

.fe-img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fe-img-item {
  position: relative;
  width: 150px;
}

.fe-img-item img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f5f5;
}

.fe-img-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: var(--accent-color);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.fe-img-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.92);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.fe-img-item:hover .fe-img-del { display: inline-flex; }

/* New-file preview grid in /crea-prodotto/ — .fe-img-grid sets display:flex,
   which would otherwise beat the UA rule for [hidden]. */
#fe-new-images[hidden] { display: none; }

/* Queued image ops (upload preview / pending delete) — flushed on "Salva". */
.fe-img-item.fe-img-queued {
  outline: 2px dashed var(--fe-edit-outline);
  outline-offset: 2px;
}

.fe-img-item.fe-img-queued .fe-img-del { display: inline-flex; }

.fe-img-badge.fe-img-wait {
  background: var(--accent-color);
  color: var(--on-accent);
}

.fe-img-empty {
  color: #777;
  font-size: 14px;
  text-align: center;
  padding: 22px 0;
}

.fe-img-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.fe-img-status {
  font-size: 13px;
  color: #777;
}

.btn-fe-accent {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--on-accent);
}

.btn-fe-accent:hover {
  background: color-mix(in srgb, var(--accent-color), black 10%);
  border-color: color-mix(in srgb, var(--accent-color), black 10%);
  color: var(--on-accent);
}

.manage-products-table {
  background: var(--surface-color, #fff);
  border-radius: 8px;
}

.manage-products-table thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #555;
}

.manage-products-table td {
  font-size: 14px;
  vertical-align: middle;
}

/* --- Product form: remove current images with X (applied on Salva) --- */
.fe-img-card {
  position: relative;
  transition: opacity 0.15s;
}

.fe-img-remove-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.fe-img-remove-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.fe-img-remove-x:hover {
  background: var(--danger, #dc3545);
}

.fe-img-card.fe-img-removed {
  opacity: 0.35;
}

.fe-img-card.fe-img-removed .fe-img-remove-x {
  background: var(--danger, #dc3545);
}

@media (max-width: 991.98px) {
  .footer .footer-main { padding: 60px 0 30px; }
}

@media (max-width: 767.98px) {
  .footer .footer-main { padding: 50px 0 20px; }
  .hero { padding: 80px 0 50px; }
}
