/* =========================================================
   FERROLI — Custom theme styles
   Scoped to IDs to avoid Bootstrap 3 conflicts.
   Load order: Bootstrap → stylesheet.css → ferroli.css
   ========================================================= */

/* ---- Variables ---- */
:root {
  --frl-orange: #E8711A;
  --frl-dark:   #1a1a1a;
  --frl-gray:   #555;
  --frl-light:  #f5f5f5;
  --frl-border: #ddd;
}

a:hover, a:focus, button:hover, button:focus {
 outline: none;
 box-shadow: none;
}

/* ---- Shared inner container ---- */
.frl-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   TOPBAR
   ========================================================= */
#frl-topbar {
  background: #111;
  padding: 5px 0;
  font-size: 12px;
  color: #888;
  font-family: 'Barlow', 'Open Sans', sans-serif;
}
#frl-topbar .frl-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.frl-topbar-slogan {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#frl-topbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
#frl-topbar-links a {
  color: #aaa;
  padding: 0 10px;
  border-right: 1px solid #333;
  transition: color .2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
#frl-topbar-links a:first-child { padding-left: 0; }
#frl-topbar-links a:last-child { border-right: none; padding-right: 0; }
#frl-topbar-links a:hover { color: #fff; }
.frl-topbar-register {
  color: #e8a07a !important;
  font-weight: 500;
}
.frl-topbar-register:hover { color: #fff !important; }
.frl-topbar-sep {
  width: 1px;
  height: 12px;
  background: #444;
  margin: 0 2px;
}

/* =========================================================
   HEADER
   ========================================================= */
#frl-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  /* reset any Bootstrap/theme margin that can shift the sticky */
  margin: 0;
}
#frl-header .frl-wrap {
  display: flex;
  align-items: center;
  height: 76px;
}

/* Logo */
#frl-logo {
  padding: 0 20px 0 0;
  flex-shrink: 0;
  margin: 0; /* override #logo { margin: 0 0 10px 0 } */
}
#frl-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
#frl-logo img {
  height: 50px;
  width: 120px;
  object-fit: contain;
  object-position: left center;
  /* override .img-responsive if Bootstrap applies it */
  max-width: none;
  display: block;
}

/* Search */
#frl-header-search {
  padding: 0 20px;
  width: 300px;
  position: relative;
  flex-shrink: 0;
}
.frl-search-form { margin: 0; }
.frl-search-wrap {
  display: flex;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.frl-search-wrap input[type="text"] {
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13px;
  width: 100%;
  font-family: 'Barlow', 'Open Sans', sans-serif;
  color: #222;
  background: transparent;
  /* reset Bootstrap form-control */
  height: auto;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.4;
}
.frl-search-wrap input[type="text"]:focus { box-shadow: none; border-color: transparent; }
.frl-search-wrap button {
  background: var(--frl-orange);
  border: none;
  color: #fff;
  padding: 0 13px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-radius: 0;
}
.frl-search-wrap button:hover { background: #c85c0e; }

/* Search dropdown */
.frl-search-results {
  position: absolute;
  top: calc(100% + 2px);
  left: 20px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid var(--frl-orange);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  z-index: 2000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}
.frl-search-results.open { display: block; }
.frl-sri {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.frl-sri:last-child { border-bottom: none; }
.frl-sri:hover { background: #fef6f0; }
.frl-sri-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 3px;
  padding: 3px;
  display: block;
}
.frl-sri-info { flex: 1; min-width: 0; }
.frl-sri-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frl-sri-cat { font-size: 11px; color: #999; margin-top: 2px; }
.frl-sri-price { font-size: 12px; font-weight: 700; color: var(--frl-orange); flex-shrink: 0; white-space: nowrap; }
.frl-search-spinner,
.frl-search-empty {
  display: none;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #bbb;
}
.frl-search-spinner.show,
.frl-search-empty.show { display: block; }
.frl-search-footer {
  display: none;
  padding: 10px 14px;
  background: #fafafa;
  text-align: center;
  font-size: 12px;
  color: var(--frl-orange);
  cursor: pointer;
  font-weight: 600;
  border-top: 1px solid #eee;
}
.frl-search-footer:hover { background: #fef0e6; }
.frl-sri-img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}
.frl-sri-var {
  font-size: 11px;
  color: var(--frl-orange);
  margin-top: 2px;
  font-family: monospace;
}
.frl-sri mark {
  background: #ffe8cc;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 700;
}

/* Nav right */
#frl-header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0;
  gap: 4px;
  font-family: 'Barlow', 'Open Sans', sans-serif;
}
#frl-header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  padding: 7px 11px;
  border-radius: 3px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  text-decoration: none;
}
#frl-header-nav a:hover {
  background: var(--frl-orange);
  color: #fff;
}
#frl-lang-switcher {
  margin-left: 10px;
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 10px;
}

/* ── Compact language switcher (Bootstrap markup, no JS needed) ── */
#frl-lang-switcher .btn-group {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 4px;
}
/* Hide Bootstrap caret and toggle button text */
#frl-lang-switcher .dropdown-toggle {
  display: none !important;
}
/* Show all flags inline – override Bootstrap's hidden dropdown */
#frl-lang-switcher .dropdown-menu {
  display: flex !important;
  position: static !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  gap: 4px;
  flex-direction: row !important;
}
#frl-lang-switcher .dropdown-menu > li {
  float: none !important;
}
#frl-lang-switcher .dropdown-menu li .btn {
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1;
  opacity: .55;
  transition: opacity .2s;
}
#frl-lang-switcher .dropdown-menu li .btn:hover,
#frl-lang-switcher .dropdown-menu li .btn:focus {
  opacity: 1;
  background: none !important;
}
#frl-lang-switcher .dropdown-menu li .btn img {
  display: block;
  width: 22px;
  height: auto;
  border-radius: 2px;
}

/* Cart icon in nav */
#frl-header-nav .frl-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
#frl-header-nav .frl-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--frl-orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(6px, -6px);
}

/* =========================================================
   MAIN NAV — Mega dropdown
   ========================================================= */
#frl-mainnav {
  background: #111;
  position: relative;
  z-index: 900;
  /* override any Bootstrap nav margin/padding */
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  font-family: 'Barlow', 'Open Sans', sans-serif;
}
.frl-mainnav-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.frl-nav-item { position: relative; }
.frl-nav-label {
  padding: 15px 26px;
  color: #ccc;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .2s, color .2s;
  border-right: 1px solid #222;
  user-select: none;
}
.frl-nav-label::after {
  content: '▾';
  font-size: 10px;
  opacity: .5;
  transition: transform .2s;
  margin-left: 2px;
}
.frl-nav-item:hover .frl-nav-label,
.frl-nav-item.frl-nav-open .frl-nav-label {
  background: var(--frl-orange);
  color: #fff;
}
.frl-nav-item:hover .frl-nav-label::after,
.frl-nav-item.frl-nav-open .frl-nav-label::after { transform: rotate(180deg); }

/* ── Mega dropdown base ── */
.frl-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 860px;
  background: #fff;
  border-top: 3px solid var(--frl-orange);
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
  z-index: 990;
}
.frl-nav-item:hover .frl-mega,
.frl-nav-item.frl-nav-open .frl-mega { display: block; }

/* Services panel overrides base to flex */
.frl-nav-item:hover .frl-mega-services,
.frl-nav-item.frl-nav-open .frl-mega-services { display: flex; }

/* ── Category mega: 3-column grid ── */
.frl-mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.frl-mega-col {
  padding: 18px 18px 20px;
  border-right: 1px solid #f0f0f0;
}
.frl-mega-col:last-child { border-right: none; }

/* Level-2 image card (column header) */
.frl-mega-col-img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 10px;
  text-decoration: none;
  background: #f0f0f0;
}
.frl-mega-col-img img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
  max-width: none;
}
.frl-mega-col-img:hover img { transform: scale(1.05); }
.frl-mega-col-img span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 16px 8px 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.2;
}
.frl-mega-col-img:hover span {
  background: linear-gradient(0deg, rgba(232,113,26,.85) 0%, transparent 100%);
}

/* Placeholder */
.frl-mega-imgcard-ph {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ececec 0%, #e0e0e0 100%);
}
.frl-mega-imgcard-ph svg { opacity: .35; }

/* Level-3 links list */
.frl-mega-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.frl-mega-col-list li { padding: 2px 0; }
.frl-mega-col-list li a {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
  text-decoration: none;
}
.frl-mega-col-list li a::before {
  content: '›';
  color: var(--frl-orange);
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.frl-mega-col-list li a:hover { color: var(--frl-orange); }

/* ── Services mega: left sidebar + right panels ── */
.frl-mega-left {
  width: 200px;
  background: #f6f6f6;
  border-right: 1px solid #ebebeb;
  padding: 10px 0;
  flex-shrink: 0;
}
.frl-mega-litem {
  padding: 11px 18px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.frl-mega-litem::after { content: '›'; font-size: 17px; color: #bbb; line-height: 1; }
.frl-mega-litem:hover,
.frl-mega-litem.active {
  background: #fff;
  color: var(--frl-orange);
  border-left-color: var(--frl-orange);
}
.frl-mega-litem.active::after,
.frl-mega-litem:hover::after { color: var(--frl-orange); }

.frl-mega-panel {
  flex: 1;
  padding: 22px 22px 18px;
  display: none;
}
.frl-mega-panel.active { display: block; }
.frl-mega-panel h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--frl-orange);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.frl-mega-links { columns: 1; gap: 14px; list-style: none; margin: 0; padding: 0; }
.frl-mega-links li { padding: 3px 0; break-inside: avoid; }
.frl-mega-links li a {
  font-size: 12px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
  text-decoration: none;
}
.frl-mega-links li a::before {
  content: '›';
  color: var(--frl-orange);
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.frl-mega-links li a:hover { color: var(--frl-orange); }

/* ── Services mega panel ── */
.frl-mega-services .frl-mega-panel { display: none; }
.frl-mega-services .frl-mega-panel.active { display: block; }

.frl-svc-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.frl-svc-links { flex: 1; }
.frl-svc-links .frl-mega-links { columns: 1; }

.frl-svc-contact {
  flex-shrink: 0;
  background: #fdf5ee;
  border: 1px solid #f0d9c5;
  border-radius: 4px;
  padding: 16px 18px;
  min-width: 260px;
}
.frl-svc-contact-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--frl-orange);
  margin-bottom: 10px;
}
.frl-svc-phone,
.frl-svc-email {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  margin-top: 6px;
  transition: color .15s;
}
.frl-svc-phone { font-weight: 600; font-size: 15px; }
.frl-svc-phone:hover,
.frl-svc-email:hover { color: var(--frl-orange); }

/* nav-label works for both <a> and <div> */
.frl-nav-label { text-decoration: none; }

/* Services mega — anchored under the nav item (same as others) */
.frl-mega-services { min-width: 780px !important; }

/* =========================================================
   HOME PAGE
   ========================================================= */

/* Hero Slider */
.frl-hero-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.frl-hero-swiper { width: 100%; }
.frl-hero-slide {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.frl-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frl-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.frl-hero-caption span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.frl-hero-swiper .swiper-button-prev,
.frl-hero-swiper .swiper-button-next {
  width: 44px !important;
  height: 44px !important;
  background: rgba(0,0,0,.4);
  border-radius: 50%;
  color: #fff !important;
  --swiper-navigation-size: 18px;
  transition: background .2s;
}
.frl-hero-swiper .swiper-button-prev:hover,
.frl-hero-swiper .swiper-button-next:hover { background: var(--frl-orange); }
.frl-hero-swiper .swiper-pagination-bullet-active { background: var(--frl-orange) !important; }

/* Section common */
.frl-home-section { padding: 52px 0 12px; }
.frl-home-news-section { padding-top: 44px; padding-bottom: 48px; }

.frl-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--frl-orange);
}
.frl-section-hd h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--frl-dark);
  margin: 0;
}
.frl-section-more {
  font-size: 13px;
  color: var(--frl-orange);
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.frl-section-more:hover { opacity: .7; color: var(--frl-orange); }

/* Featured products */
.frl-home-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.frl-home-product-card {
  display: block;
  text-align: center;
  border: 1px solid var(--frl-border);
  border-radius: 3px;
  padding: 20px 12px 16px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  color: var(--frl-dark);
}
.frl-home-product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  transform: translateY(-3px);
  color: var(--frl-dark);
  text-decoration: none;
}
.frl-home-product-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.frl-home-product-img img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
.frl-home-product-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

/* Home responsive */
@media (max-width: 960px) {
  .frl-home-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .frl-home-products { grid-template-columns: repeat(2, 1fr); }
  .frl-hero-caption span { font-size: 16px; }
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */

.frl-search-page-form {
  margin-bottom: 32px;
}
.frl-search-page-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.frl-search-page-row .frl-input { flex: 1 1 180px; min-width: 0; }
.frl-sp-select { max-width: 220px; }
.frl-sp-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
}
.frl-sp-check input { width: auto; margin: 0; }
.frl-sp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.frl-sp-count { font-size: 14px; color: #666; }
.frl-sp-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}
.frl-sp-empty svg { display: block; margin: 0 auto 16px; }
.frl-sp-empty p { font-size: 15px; }

/* Variant matches grid */
.frl-svc-card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.frl-svc-card-body { padding: 16px 20px; }
.frl-sp-variants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.frl-sp-vcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.frl-sp-vcard:hover { border-color: var(--frl-orange); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.frl-sp-vcard img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.frl-sp-vcard-name { font-size: 13px; font-weight: 600; color: #222; margin-bottom: 4px; line-height: 1.3; }
.frl-sp-vcard-art { font-size: 11px; color: var(--frl-orange); }
.frl-sp-vcard-art code { background: #fff3e5; border-radius: 3px; padding: 1px 4px; font-family: monospace; }

/* Search page reuses .frl-plist / .frl-pcard from category page */
.frl-plist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 960px) {
  .frl-plist { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .frl-plist { grid-template-columns: repeat(2, 1fr); }
}

.frl-pagination { margin-top: 32px; text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
#frl-footer {
  background: #1a1a1a;
  color: #d4d4d4;
  padding: 0;
  margin: 0;
  border: none;
  font-family: 'Barlow', 'Open Sans', sans-serif;
}
#frl-footer a { color: #d4d4d4; text-decoration: none; transition: color .2s; }
#frl-footer a:hover { color: var(--frl-orange); }

/* 4-column grid */
.frl-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 52px 0 44px;
  border-bottom: 1px solid #2a2a2a;
}

/* Brand column */
.frl-footer-brand {}
.frl-footer-logo { margin-bottom: 16px; }
.frl-footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}
.frl-footer-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.frl-footer-desc {
  font-size: 13px;
  color: #d4d4d4;
  line-height: 1.8;
  margin: 0 0 20px;
  max-width: 280px;
}
.frl-footer-contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.frl-footer-contact-list li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.frl-footer-contact-list li svg { flex-shrink: 0; opacity: .45; color: #aaa; display: block; }
.frl-footer-contact-list li a { font-size: 13px; color: #aaa; line-height: 1.4; }
.frl-footer-contact-list li a:hover { color: var(--frl-orange); }

/* Social icons */
.frl-footer-socials {
  display: flex;
  gap: 8px;
}
.frl-footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  opacity: .7;
  transition: opacity .2s;
}
.frl-footer-socials a:hover { opacity: 1; color: #aaa; background: #2a2a2a; }

/* Regular columns */
.frl-footer-col-hd {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}
.frl-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.frl-footer-links li { margin-bottom: 8px; }
.frl-footer-links li a {
  font-size: 13px;
  color: #aaa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, padding-left .15s;
}
.frl-footer-links li a:hover { color: var(--frl-orange); }
.frl-footer-sep-item {
  height: 1px;
  background: #2a2a2a;
  margin: 10px 0 !important;
  pointer-events: none;
}

/* Bottom bar */
.frl-footer-bottom { padding: 16px 0; }
.frl-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.frl-footer-copy { font-size: 12px; color: #666; }
.frl-footer-powered { font-size: 12px; color: #666; }
.frl-footer-powered a { color: #666; }
.frl-footer-powered a:hover { color: var(--frl-orange); }

/* Responsive */
@media (max-width: 960px) {
  .frl-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .frl-footer-brand { grid-column: 1 / -1; }
  .frl-footer-desc { max-width: 100%; }
}
@media (max-width: 600px) {
  .frl-footer-top { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
#frl-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--frl-orange);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: background .2s, opacity .3s, transform .2s;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
}
#frl-back-top.show { opacity: 1; pointer-events: auto; }
#frl-back-top:hover { background: #c85c0e; transform: translateY(-3px); }

/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */
#frl-mob-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  margin-left: 12px;
  flex-shrink: 0;
  z-index: 1001;
}
#frl-mob-toggle span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
#frl-mob-toggle.is-open span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
#frl-mob-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#frl-mob-toggle.is-open span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }

/* =========================================================
   MOBILE NAV DRAWER
   ========================================================= */
#frl-mob-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1099;
}
#frl-mob-backdrop.active { display: block; }

#frl-mob-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  background: #fff;
  z-index: 1100;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
#frl-mob-nav.open { transform: translateX(0); }

/* Header of drawer */
.frl-mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.frl-mob-logo-link img { height: 36px; width: auto; object-fit: contain; display: block; }
.frl-mob-logo-link span { font-family: 'Barlow Condensed',sans-serif; font-size: 20px; font-weight: 700; color: #1a1a1a; }
#frl-mob-close {
  width: 34px; height: 34px;
  background: #f5f5f5;
  border: none; border-radius: 50%;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: #555; transition: background .2s;
}
#frl-mob-close:hover { background: #ffe5d5; color: var(--frl-orange); }

/* Auth bar */
.frl-mob-auth {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.frl-mob-auth a {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
  color: #444;
  background: #eee;
  transition: background .2s, color .2s;
}
.frl-mob-auth a:hover { background: var(--frl-orange); color: #fff; }
.frl-mob-auth-reg { background: var(--frl-orange) !important; color: #fff !important; }
.frl-mob-auth-out { background: #f5e5e5 !important; color: #c0392b !important; }

/* Menu list */
.frl-mob-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}
.frl-mob-item { border-bottom: 1px solid #f3f3f3; }
.frl-mob-sep { border-top: 3px solid #f0f0f0; margin-top: 4px; }

.frl-mob-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.frl-mob-row-l2 { background: #fafafa; }

.frl-mob-link {
  flex: 1;
  display: block;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: color .15s;
}
.frl-mob-link:hover { color: var(--frl-orange); }
.frl-mob-row-l2 .frl-mob-link { font-size: 13px; font-weight: 400; padding: 11px 24px; }
.frl-mob-l3 { font-size: 12px !important; padding: 9px 36px !important; color: #666 !important; }

.frl-mob-arrow {
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  flex-shrink: 0;
  transition: color .2s, transform .25s;
}
.frl-mob-arrow:hover { color: var(--frl-orange); }
.frl-mob-item.open > .frl-mob-row .frl-mob-arrow { transform: rotate(180deg); color: var(--frl-orange); }

/* Accordion sub-menus */
.frl-mob-sub {
  list-style: none;
  margin: 0; padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
  background: #fafafa;
  border-top: 1px solid #efefef;
}
.frl-mob-item.open > .frl-mob-sub { max-height: 1200px; }
.frl-mob-sub-l3 { background: #f5f5f5; }
.frl-mob-sub li > .frl-mob-sub { background: #f5f5f5; }
.frl-mob-sub li.open > .frl-mob-sub { max-height: 600px; }

/* Language in drawer */
.frl-mob-lang {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

/* =========================================================
   RESPONSIVE — Header / Main nav
   ========================================================= */
@media (max-width: 960px) {
  /* Show hamburger, hide desktop nav */
  #frl-mob-toggle { display: flex; }
  #frl-mainnav { display: none; }

  /* Topbar: hide slogan, keep auth */
  .frl-topbar-slogan { display: none; }

  /* Header: shrink search */
  #frl-header-search { width: 220px; }

  /* Header nav: hide text links, keep lang */
  #frl-header-nav a.frl-hide-mobile { display: none; }

  /* Footer */
  .frl-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  /* Search in header — hide on very small screens (accessible via mobile menu) */
  #frl-header-search { display: none; }

  /* Topbar: completely hide */
  #frl-topbar { display: none; }

  /* Header height */
  #frl-header .frl-wrap { height: 60px; }
  #frl-logo img { height: 40px; }

  /* Lang switcher in header — hide (accessible in mob drawer) */
  #frl-lang-switcher { display: none; }

  /* Footer */
  .frl-footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   BREADCRUMB — shared for category & product pages
   ========================================================= */
.frl-breadcrumb {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 28px;
  font-family: 'Barlow', 'Open Sans', sans-serif;
}
.frl-breadcrumb li { display: flex; align-items: center; }
.frl-breadcrumb li + li::before {
  content: '›';
  margin: 0 7px;
  color: #ccc;
  font-size: 14px;
}
.frl-breadcrumb a { color: #888; text-decoration: none; transition: color .2s; }
.frl-breadcrumb a:hover { color: var(--frl-orange); }
.frl-breadcrumb li:last-child a,
.frl-breadcrumb li:last-child span { color: #444; font-weight: 500; }

/* =========================================================
   PAGE WRAPPER — category & product pages
   ========================================================= */
.frl-page {
  padding: 0 0 60px;
  font-family: 'Barlow', 'Open Sans', sans-serif;
}

/* =========================================================
   CATEGORY PAGE
   ========================================================= */

/* Category hero bar */
.frl-cat-hero {
  margin-bottom: 28px;
}
.frl-cat-hero-body {}
.frl-cat-hero-body h1 {
  font-family: 'Barlow Condensed', 'Open Sans', sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--frl-dark);
  margin: 0 0 10px;
  line-height: 1.2;
}
.frl-cat-hero-body .frl-cat-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  max-width: 700px;
}

/* Section title */
.frl-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--frl-orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.frl-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

/* Subcategory grid — vertical cards */
.frl-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.frl-subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--frl-border);
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.frl-subcat-card:hover {
  border-color: var(--frl-orange);
  box-shadow: 0 4px 16px rgba(232,113,26,.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: #333;
}

/* Image area — fills the top portion */
.frl-subcat-cover {
  width: 100%;
  aspect-ratio: 4/3;
  background: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.frl-subcat-cover img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s;
}
.frl-subcat-card:hover .frl-subcat-cover img { transform: scale(1.05); }

/* Name label at the bottom */
.frl-subcat-name {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  transition: background .2s, color .2s;
}
.frl-subcat-card:hover .frl-subcat-name {
  color: var(--frl-orange);
}

/* Products toolbar */
.frl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 3px;
  margin-bottom: 20px;
}
.frl-toolbar-left { display: flex; align-items: center; gap: 8px; }
.frl-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.frl-view-btns { display: flex; gap: 4px; }
.frl-view-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all .2s;
  padding: 0;
}
.frl-view-btn.active, .frl-view-btn:hover {
  background: var(--frl-orange);
  border-color: var(--frl-orange);
  color: #fff;
}
.frl-sort-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}
.frl-sort-group select {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 12px;
  color: #444;
  background: #fff;
  outline: none;
  height: auto;
  font-family: inherit;
}
.frl-compare-link {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  transition: color .2s;
}
.frl-compare-link:hover { color: var(--frl-orange); }

/* Product grid */
.frl-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.frl-cat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

/* Product card */
.frl-pcard {
  border: 1px solid var(--frl-border);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.frl-pcard:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.frl-pcard-img {
  height: 170px;
  overflow: hidden;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}
.frl-pcard-img img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  transition: transform .3s;
  display: block;
}
.frl-pcard:hover .frl-pcard-img img { transform: scale(1.05); }
.frl-pcard-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.frl-pcard-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  transition: color .2s;
}
.frl-pcard:hover .frl-pcard-name { color: var(--frl-orange); }
.frl-pcard-model {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.frl-pcard-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--frl-orange);
  margin-top: 6px;
}
.frl-pcard-price-old {
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 4px;
}


/* Pagination */
.frl-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}
/* override Bootstrap pagination inside our wrapper */
.frl-pagination .pagination { margin: 0; }
.frl-pagination .pagination > li > a,
.frl-pagination .pagination > li > span {
  color: #444;
  border-color: #ddd;
  font-size: 12px;
  padding: 5px 10px;
}
.frl-pagination .pagination > .active > a,
.frl-pagination .pagination > .active > span,
.frl-pagination .pagination > li > a:hover {
  background: var(--frl-orange);
  border-color: var(--frl-orange);
  color: #fff;
}

/* Empty state */
.frl-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 14px;
}
.frl-empty svg { margin: 0 auto 16px; display: block; opacity: .3; }

/* =========================================================
   PRODUCT PAGE
   ========================================================= */
.frl-product-page { padding: 0 0 60px; font-family: 'Barlow', 'Open Sans', sans-serif; }

/* Main two-column layout */
.frl-product-main {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}

/* Gallery */
.frl-gallery {}

/* Main image area */
.frl-gallery-main {
  border: 1px solid var(--frl-border);
  border-radius: 3px;
  overflow: hidden;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  margin-bottom: 10px;
  position: relative;
  cursor: zoom-in;
  transition: border-color .2s;
}
.frl-gallery-main:hover { border-color: var(--frl-orange); }
.frl-gallery-main img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  transition: transform .3s;
  user-select: none;
}
.frl-gallery-main:hover img { transform: scale(1.03); }

/* Zoom hint badge */
.frl-gallery-zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.35);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  z-index: 1;
}
.frl-gallery-main:hover .frl-gallery-zoom-hint { opacity: 1; }

/* Thumbnail strip */
.frl-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.frl-gthumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--frl-border);
  border-radius: 3px;
  overflow: hidden;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 3px;
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}
.frl-gthumb:hover { border-color: #bbb; }
.frl-gthumb.active {
  border-color: var(--frl-orange);
  box-shadow: 0 0 0 1px var(--frl-orange);
}
.frl-gthumb img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Info panel */
.frl-product-info {}
.frl-product-info h1 {
  font-family: 'Barlow Condensed', 'Open Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--frl-dark);
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.frl-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.frl-product-meta span { display: flex; align-items: center; gap: 4px; }
.frl-product-meta a { color: inherit; text-decoration: none; }
.frl-product-meta a:hover { color: var(--frl-orange); }
.frl-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  background: #e8f5e9;
  color: #388e3c;
}
.frl-stock-badge.out { background: #fce4e4; color: #c62828; }

/* Full description block under title */
.frl-product-desc-block {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 14px;
  padding-bottom: 14px;
}
.frl-product-desc-block p { margin-bottom: 8px; }
.frl-product-desc-block p:last-child { margin-bottom: 0; }
.frl-product-desc-block ul, .frl-product-desc-block ol { padding-left: 18px; margin-bottom: 8px; }
.frl-product-desc-block li { margin-bottom: 3px; }

/* Manufacturer line */
.frl-product-mfr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}
.frl-product-mfr a { color: #666; text-decoration: none; transition: color .2s; }
.frl-product-mfr a:hover { color: var(--frl-orange); }
.frl-product-mfr svg { flex-shrink: 0; color: #bbb; }

/* Price */
.frl-price-block {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.frl-price-main {
  font-size: 28px;
  font-weight: 700;
  color: var(--frl-orange);
  font-family: 'Barlow Condensed', sans-serif;
}
.frl-price-crossed {
  font-size: 16px;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
}
.frl-price-tax { font-size: 11px; color: #aaa; align-self: flex-end; }

/* Discounts */
.frl-discounts {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
  border: 1px solid #eee;
  border-radius: 3px;
  overflow: hidden;
}
.frl-discounts-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid #f5f5f5;
}
.frl-discounts-row:last-child { border-bottom: none; }
.frl-discounts-row strong { color: #444; }

/* Options */
.frl-options { margin-bottom: 20px; }
.frl-option-group { margin-bottom: 14px; }
.frl-option-label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  display: block;
}
.frl-option-label.required::after { content: ' *'; color: #e53935; }
.frl-option-select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
}
.frl-option-select:focus { border-color: var(--frl-orange); }
.frl-option-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  outline: none;
}
.frl-option-input:focus { border-color: var(--frl-orange); }

/* Cart area */
.frl-cart-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.frl-qty-input {
  width: 70px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  font-family: inherit;
  outline: none;
  height: 48px;
}
.frl-qty-input:focus { border-color: var(--frl-orange); }
.frl-btn-cart {
  flex: 1;
  background: var(--frl-orange);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  height: 48px;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.frl-btn-cart:hover { background: #c85c0e; }
.frl-btn-cart:disabled { background: #ccc; cursor: not-allowed; }

/* (wishlist/compare buttons removed from product info panel) */

/* =========================================================
   PRODUCT TABS (override Bootstrap .nav-tabs)
   ========================================================= */
.frl-tabs-wrap { margin-bottom: 48px; }

.frl-tabs-wrap .nav-tabs {
  border-bottom: 2px solid #e8e8e8;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0 0 0;
  padding: 0;
  background: none;
}
.frl-tabs-wrap .nav-tabs > li {
  margin-bottom: -2px;
  float: none;
}
.frl-tabs-wrap .nav-tabs > li > a {
  display: block;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  transition: color .2s, border-color .2s;
  font-family: 'Barlow', 'Open Sans', sans-serif;
  margin: 0;
  white-space: nowrap;
}
.frl-tabs-wrap .nav-tabs > li > a:hover {
  color: var(--frl-orange);
  border-color: var(--frl-orange);
  background: none;
}
.frl-tabs-wrap .nav-tabs > li.active > a,
.frl-tabs-wrap .nav-tabs > li.active > a:hover,
.frl-tabs-wrap .nav-tabs > li.active > a:focus {
  color: var(--frl-orange);
  border-bottom: 2px solid var(--frl-orange);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.frl-tabs-wrap .tab-content {
  padding: 28px 0;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}

/* Variants table */
.frl-variants-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.frl-variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 600px;
}
.frl-variants-table th {
  background: #f5f5f5;
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  border: 1px solid #e8e8e8;
  min-width: 160px;
}
.frl-variants-table td {
  padding: 8px 14px;
  text-align: center;
  border: 1px solid #eee;
  color: #555;
}
.frl-variants-table tr:hover td { background: #fef9f5; }
.frl-variants-table td strong { color: var(--frl-orange); font-size: 13px; }
.frl-variants-table .frl-col-sticky {
  position: sticky;
  left: 0;
  background: #f5f5f5;
  z-index: 1;
}

/* Documents list */
.frl-docs-list { list-style: none; margin: 0; padding: 0; }
.frl-docs-list li { margin-bottom: 10px; }
.frl-docs-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #eee;
  border-radius: 3px;
  text-decoration: none;
  color: #444;
  font-size: 13px;
  transition: border-color .2s, color .2s, background .2s;
}
.frl-docs-list a:hover { border-color: var(--frl-orange); color: var(--frl-orange); background: #fef9f5; }
.frl-docs-list .frl-doc-icon { font-size: 18px; flex-shrink: 0; }
.frl-docs-list .frl-doc-icon.pdf { color: #c62828; }
.frl-docs-list .frl-doc-icon.link { color: #1976d2; }

/* Specification table */
.frl-spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.frl-spec-group-head td {
  background: #f5f5f5;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  border: 1px solid #eee;
}
.frl-spec-table td {
  padding: 8px 14px;
  border: 1px solid #eee;
  color: #444;
}
.frl-spec-table tr:nth-child(even) td { background: #fafafa; }
.frl-spec-table td:first-child { font-weight: 500; color: #333; width: 40%; }

/* Product icons row */
.frl-product-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.frl-product-icons img { width: 60px; height: 60px; object-fit: contain; }

/* Related products */
.frl-related { margin-top: 16px; }
.frl-related-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--frl-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--frl-orange);
  display: inline-block;
}
.frl-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* =========================================================
   RESPONSIVE — category & product pages
   ========================================================= */
@media (max-width: 1100px) {
  .frl-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .frl-related-grid { grid-template-columns: repeat(3, 1fr); }
  .frl-product-main { grid-template-columns: 1fr 360px; gap: 28px; }
}
@media (max-width: 860px) {
  .frl-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .frl-product-main { grid-template-columns: 1fr; }
  .frl-related-grid { grid-template-columns: repeat(2, 1fr); }

}
@media (max-width: 600px) {
  .frl-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .frl-related-grid { grid-template-columns: repeat(2, 1fr); }
  .frl-subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .frl-subcat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .frl-cat-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   magnificPopup overrides — Ferroli style
   ========================================================= */
.mfp-fade.mfp-bg { opacity: 0; transition: opacity .3s; }
.mfp-fade.mfp-bg.mfp-ready { opacity: .85; }
.mfp-fade.mfp-bg.mfp-removing { opacity: 0; }
.mfp-fade.mfp-wrap .mfp-content { opacity: 0; transform: scale(.96); transition: opacity .3s, transform .3s; }
.mfp-fade.mfp-wrap.mfp-ready .mfp-content { opacity: 1; transform: scale(1); }
.mfp-fade.mfp-wrap.mfp-removing .mfp-content { opacity: 0; transform: scale(.96); }

/* Navigation arrows */
.mfp-arrow { opacity: .7; transition: opacity .2s; }
.mfp-arrow:hover { opacity: 1; }
.mfp-arrow-left::before, .mfp-arrow-right::before { border: none; }
.mfp-arrow-right::after { border-left-color: var(--frl-orange) !important; }
.mfp-arrow-left::after  { border-right-color: var(--frl-orange) !important; }

/* Close button */
.mfp-close {
  color: #fff !important;
  font-size: 28px;
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.mfp-close:hover { opacity: 1; color: var(--frl-orange) !important; }

/* Counter */
.mfp-counter {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-family: 'Barlow', sans-serif;
}

/* Gallery thumbnail strip mobile fix */
@media (max-width: 480px) {
  .frl-gallery-main { height: 260px; }
  .frl-gthumb { width: 56px; height: 56px; }
}

/* =========================================================
   SERVICE PAGES
   ========================================================= */
.frl-svc-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: 'Barlow', 'Open Sans', sans-serif;
}
.frl-svc-wrap.frl-svc-wide { max-width: 1100px; }

/* Hero */
.frl-svc-hero {
  padding: 28px 0 22px;
  border-bottom: 1px solid #eee;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.frl-svc-hero-icon {
  width: 36px; height: 36px;
  background: var(--frl-orange);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: #fff;
}
.frl-svc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--frl-dark);
  margin: 0 0 6px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.frl-svc-intro {
  font-size: 14px;
  color: var(--frl-gray);
  margin: 0;
  width: 100%;
  line-height: 1.6;
}

/* Card */
.frl-svc-card {
  background: #fff;
  border: 1px solid var(--frl-border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.frl-svc-card-hd {
  padding: 14px 20px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--frl-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--frl-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.frl-svc-card-hd svg { color: var(--frl-orange); flex-shrink: 0; }
.frl-svc-card-body { padding: 24px; }

/* Form fields */
.frl-field {
  margin-bottom: 18px;
}
.frl-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.frl-req { color: var(--frl-orange); margin-left: 2px; }
.frl-input,
.frl-select,
.frl-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Barlow', 'Open Sans', sans-serif;
  color: #222;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  /* reset Bootstrap */
  height: auto;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.frl-input:focus,
.frl-select:focus,
.frl-textarea:focus {
  border-color: var(--frl-orange);
  box-shadow: 0 0 0 3px rgba(232,113,26,.1);
  outline: none;
}
.frl-textarea { min-height: 110px; resize: vertical; }
.frl-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.frl-help { font-size: 12px; color: #888; margin-top: 4px; }
.frl-field-error { font-size: 12px; color: #c0392b; margin-top: 4px; }
.frl-field.has-error .frl-input,
.frl-field.has-error .frl-select,
.frl-field.has-error .frl-textarea { border-color: #c0392b; }

/* Two-column field grid */
.frl-fields-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .frl-fields-2col { grid-template-columns: 1fr; } }

/* Actions row */
.frl-svc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: 24px;
}

/* Buttons */
.frl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 3px;
  font-family: 'Barlow', 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.frl-btn-primary {
  background: var(--frl-orange);
  color: #fff;
}
.frl-btn-primary:hover { background: #c85c0e; color: #fff; }
.frl-btn-outline {
  background: #fff;
  color: var(--frl-dark);
  border: 1.5px solid var(--frl-border);
}
.frl-btn-outline:hover { border-color: var(--frl-orange); color: var(--frl-orange); }
.frl-btn-success { background: #27ae60; color: #fff; }
.frl-btn-success:hover { background: #1e8449; color: #fff; }
.frl-btn-lg { padding: 13px 30px; font-size: 14px; }

/* Alerts */
.frl-alert {
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.frl-alert svg { flex-shrink: 0; margin-top: 1px; }
.frl-alert > div { flex: 1; }
.frl-alert-danger  { background: #fdf2f2; border: 1px solid #f5c6cb; color: #721c24; }
.frl-alert-success { background: #f0fff5; border: 1px solid #b7dfca; color: #155724; }
.frl-alert-warning { background: #fffbf0; border: 1px solid #ffd98a; color: #856404; }
.frl-alert-info    { background: #f0f7ff; border: 1px solid #b8d4f0; color: #084298; }

/* Info table (service check / order detail) */
.frl-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.frl-info-table th {
  width: 160px;
  padding: 9px 12px 9px 0;
  color: #888;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
}
.frl-info-table td {
  padding: 9px 12px 9px 0;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
}
.frl-info-table tr:last-child th,
.frl-info-table tr:last-child td { border-bottom: none; }

/* Status badge */
.frl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.frl-badge-new      { background: #e3f2fd; color: #1565c0; }
.frl-badge-progress { background: #fff3e0; color: #e65100; }
.frl-badge-done     { background: #e8f5e9; color: #2e7d32; }
.frl-badge-closed   { background: #f5f5f5; color: #555; }

/* History timeline */
.frl-history-entry {
  padding: 10px 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--frl-orange);
  background: #fafafa;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
}
.frl-history-meta { color: #888; font-size: 11px; margin-bottom: 4px; }

/* Stats row (service_orders) */
.frl-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.frl-stat-card {
  background: #fff;
  border: 1px solid var(--frl-border);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
}
.frl-stat-card-num { font-size: 32px; font-weight: 700; color: var(--frl-dark); line-height: 1; }
.frl-stat-card-lbl { font-size: 11px; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.frl-stat-card.warn .frl-stat-card-num { color: #e65100; }
.frl-stat-card.danger .frl-stat-card-num { color: #c0392b; }

/* Orders table */
.frl-orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.frl-orders-table th {
  background: #f5f5f5;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #555;
  border-bottom: 2px solid var(--frl-border);
  white-space: nowrap;
}
.frl-orders-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #333;
}
.frl-orders-table tr:hover td { background: #fafafa; }
.frl-orders-table tr.overdue td { background: #fff8f8; }
.frl-orders-table .frl-orders-num { font-weight: 700; color: var(--frl-dark); }

/* Filters bar */
.frl-filters-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Thanks card */
.frl-thanks-card {
  max-width: 560px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid var(--frl-border);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}
.frl-thanks-top {
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
}
.frl-thanks-icon {
  width: 64px; height: 64px;
  background: var(--frl-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.frl-thanks-title { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 700; margin: 0; }
.frl-thanks-body { padding: 28px 30px; }
.frl-thanks-num-wrap {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px 20px;
  margin: 16px 0;
}
.frl-thanks-num-lbl { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.frl-thanks-num { font-size: 30px; font-weight: 700; color: #27ae60; letter-spacing: 2px; }
.frl-thanks-links { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* Error cards */
.frl-error-item {
  padding: 10px 14px;
  border-radius: 3px;
  margin-bottom: 8px;
  font-size: 13px;
}
.frl-error-critical { background: #fdf2f2; border-left: 3px solid #e74c3c; }
.frl-error-warning  { background: #fffbf0; border-left: 3px solid #f39c12; }
.frl-error-info     { background: #f0f7ff; border-left: 3px solid #3498db; }
.frl-error-code { font-weight: 700; margin-bottom: 3px; }
.frl-error-solution { font-size: 12px; color: #666; margin-top: 3px; }

@media (max-width: 600px) {
  .frl-stats-row { grid-template-columns: 1fr 1fr; }
  .frl-svc-card-body { padding: 16px; }
  .frl-thanks-top, .frl-thanks-body { padding: 20px; }
  .frl-info-table th { width: 100px; }
}

/* ================================================================
   BLOG / NEWS PAGES
   ================================================================ */

/* --- News grid (category page) --------------------------------- */
.frl-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 28px 0;
}
.frl-news-grid-sm {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 16px 0;
}

/* --- News card -------------------------------------------------- */
.frl-news-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.frl-news-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* card image block */
.frl-news-card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f5f5f5;
}
.frl-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.frl-news-card:hover .frl-news-card-img img {
  transform: scale(1.04);
}
.frl-news-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

/* card body */
.frl-news-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.frl-news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.frl-news-card-meta time { color: #999; }
.frl-news-card-views {
  display: flex;
  align-items: center;
  gap: 3px;
}
.frl-news-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.4;
}
.frl-news-card-title a { color: inherit; text-decoration: none; }
.frl-news-card-title a:hover { color: #c0392b; }
.frl-news-card-title-sm { font-size: 13px; }
.frl-news-card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 14px;
}
.frl-news-card-more {
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  text-decoration: none;
  margin-top: auto;
}
.frl-news-card-more:hover { color: #922b21; }

/* --- Article page ---------------------------------------------- */
.frl-article {
  max-width: 820px;
  margin: 0 auto 48px;
}
.frl-article-header {
  margin-bottom: 28px;
}
.frl-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}
.frl-article-meta time { color: #999; }
.frl-article-views {
  display: flex;
  align-items: center;
  gap: 4px;
}
.frl-article-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

/* article gallery */
.frl-article-gallery {
  margin-bottom: 32px;
}
.frl-article-main-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.frl-article-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.frl-article-thumbs .frl-gthumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.frl-article-thumbs .frl-gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* article content */
.frl-article-body {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.frl-article-body h1,
.frl-article-body h2,
.frl-article-body h3 {
  color: #1a1a1a;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.frl-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
}
.frl-article-body a { color: #c0392b; }
.frl-article-body p { margin-bottom: 1em; }

/* downloads */
.frl-article-downloads {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frl-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #c0392b;
  text-decoration: none;
  font-weight: 500;
}
.frl-download-link:hover { text-decoration: underline; }
.frl-download-size { color: #999; font-weight: 400; font-size: 12px; }

/* related sections */
.frl-related-articles {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}
.frl-related-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
}

/* pagination in blog */
.frl-pagination {
  margin: 20px 0 40px;
  text-align: center;
}
.frl-pagination ul.pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}
.frl-pagination ul.pagination li a,
.frl-pagination ul.pagination li span {
  display: block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  background: #fff;
}
.frl-pagination ul.pagination li.active span,
.frl-pagination ul.pagination li a:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

/* empty state */
.frl-empty { padding: 40px 0; text-align: center; color: #666; }

/* --- Responsive ----------------------------------------------- */
@media (max-width: 960px) {
  .frl-news-grid { grid-template-columns: repeat(2, 1fr); }
  .frl-news-grid-sm { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .frl-news-grid { grid-template-columns: 1fr; gap: 18px; }
  .frl-news-grid-sm { grid-template-columns: 1fr 1fr; gap: 14px; }
  .frl-article-title { font-size: 22px; }
}

/* ================================================================
   ACCOUNT PAGE
   ================================================================ */
.frl-account-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 60px;
}
.frl-account-card { height: 100%; }

.frl-account-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.frl-account-links li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.frl-account-links li a:hover {
  background: #f5f5f5;
  color: #c0392b;
}
.frl-account-links li a svg {
  flex-shrink: 0;
  opacity: .55;
}

@media (max-width: 767px) {
  .frl-account-wrap { grid-template-columns: 1fr; }
}

/* ================================================================
   AUTH PAGES  (login, register, forgotten password)
   ================================================================ */

/* Two-column login layout */
.frl-auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 24px 0 48px;
}
.frl-auth-card { height: 100%; }

/* Single-card layout (forgotten) */
.frl-auth-single {
  max-width: 480px;
  margin: 24px 0 48px;
}

/* Topbar responsive */
@media (max-width: 767px) {
  .frl-hide-mobile { display: none !important; }
  .frl-topbar-slogan { font-size: 11px; }
  #frl-topbar-links a { padding: 0 7px; }
}
@media (max-width: 600px) {
  .frl-auth-wrap { grid-template-columns: 1fr; }
  .frl-auth-single { max-width: 100%; }
}

/* ================================================================
   CONTACT PAGE  (information/contact)
   ================================================================ */
.frl-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}
.frl-contact-info { display: flex; flex-direction: column; gap: 20px; }
.frl-contact-form-col {}

.frl-contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.frl-contact-table tr + tr td,
.frl-contact-table tr + tr th { border-top: 1px solid #f0f0f0; }
.frl-contact-table th {
  text-align: left;
  font-weight: 600;
  color: #555;
  padding: 7px 14px 7px 0;
  white-space: nowrap;
  width: 38%;
  vertical-align: top;
}
.frl-contact-table td {
  padding: 7px 0;
  color: #333;
  vertical-align: top;
}
.frl-contact-table td a { color: #333; text-decoration: none; }
.frl-contact-table td a:hover { color: #c0392b; }

.frl-contact-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frl-contact-hours li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
}
.frl-contact-hours li svg { flex-shrink: 0; }

.frl-contact-stop {
  font-size: 13px;
  color: #555;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}
.frl-contact-stop svg { flex-shrink: 0; margin-top: 2px; }
.frl-contact-transit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.frl-contact-transit li {
  font-size: 13px;
  color: #555;
  padding-left: 16px;
  position: relative;
}
.frl-contact-transit li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}

.frl-contact-legal { margin-bottom: 48px; }
.frl-contact-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 767px) {
  .frl-contact-wrap { grid-template-columns: 1fr; }
  .frl-contact-legal-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   INFORMATION PAGES  (information/information)
   ================================================================ */

.frl-info-page {
  margin: 24px 0 60px;
}
.frl-info-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8e8e8;
}

/* --- Content area: reset + restyle everything inside ----------- */
.frl-info-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  max-width: 900px;
}

/* Paragraphs & text */
.frl-info-content p  { margin: 0 0 1em; }
.frl-info-content h1,
.frl-info-content h2,
.frl-info-content h3,
.frl-info-content h4 {
  color: #1a1a1a;
  font-weight: 700;
  margin: 1.4em 0 0.5em;
  line-height: 1.3;
}
.frl-info-content h2 { font-size: 20px; }
.frl-info-content h3 { font-size: 17px; color: #c0392b; }
.frl-info-content a  { color: #c0392b; }
.frl-info-content a:hover { text-decoration: underline; }
.frl-info-content img { max-width: 100%; height: auto; border-radius: 4px; }
.frl-info-content ul,
.frl-info-content ol { padding-left: 20px; margin-bottom: 1em; }
.frl-info-content li { margin-bottom: 4px; }

/* --- Tables ---------------------------------------------------- */
.frl-info-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 28px !important;
  font-size: 14px !important;
  float: none !important;
  /* reset inline attrs */
  border: none !important;
}
.frl-info-content table thead tr,
.frl-info-content table tr:first-child {
  background: #1a1a1a;
  color: #fff;
}
.frl-info-content table tr:first-child th,
.frl-info-content table tr:first-child td {
  color: #fff;
  font-weight: 600;
  background: #1a1a1a;
  border-color: #1a1a1a !important;
}
.frl-info-content table th,
.frl-info-content table td {
  padding: 10px 14px !important;
  border: 1px solid #e0e0e0 !important;
  vertical-align: top;
  text-align: left !important;
  /* reset inline styles */
  font-size: inherit !important;
  color: inherit;
}
.frl-info-content table tbody tr:nth-child(even) {
  background: #f8f8f8;
}
.frl-info-content table tbody tr:hover {
  background: #f0f4f8;
}
/* Strong inside table cells */
.frl-info-content table td strong,
.frl-info-content table th strong {
  font-weight: 600;
  color: inherit;
}

/* iframe (e.g. maps) */
.frl-info-content iframe {
  max-width: 100%;
  border: none;
  border-radius: 4px;
  margin: 12px 0;
}

/* figure/caption */
.frl-info-content figure {
  float: none !important;
  margin: 16px 0;
}
.frl-info-content figcaption {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

@media (max-width: 767px) {
  .frl-info-title { font-size: 22px; }
  .frl-info-content { font-size: 14px; }
  .frl-info-content table { display: block; overflow-x: auto; }
}
