/* Additions for the Next.js version of the CNC theme (loaded after css/style.css). */

/* Products dropdown: superfish used to open it on hover */
.sf-menu li.has-dropdown { position: relative; }
.sf-menu li.has-dropdown:hover > .dropdown-menu,
.sf-menu li.has-dropdown:focus-within > .dropdown-menu { display: block; }

/* Owl carousel (React version) */
.owl-carousel .owl-wrapper-outer { overflow: hidden; position: relative; width: 100%; }
.owl-carousel .owl-wrapper { position: relative; }
.owl-carousel .owl-item { float: left; }
.owl-carousel .owl-item img { user-select: none; -webkit-user-drag: none; }
.owl-controls .owl-page, .owl-controls .owl-buttons div { cursor: pointer; }

/* Pagination */
.style-pagination li { cursor: pointer; }

/* Lightbox (replaces fancybox) */
.lb-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lb-frame { position: relative; background: #fff; padding: 10px; border-radius: 4px; max-width: 95vw; max-height: 92vh; }
.lb-frame img { display: block; max-width: calc(95vw - 20px); max-height: calc(92vh - 20px); object-fit: contain; }
.lb-frame button {
  position: absolute; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer;
  font-size: 34px; line-height: 1; width: 44px; height: 44px; border-radius: 50%;
}
.lb-close { top: -18px; right: -18px; font-size: 28px !important; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* Mobile navigation */
.mobile-nav { display: none; }
@media (max-width: 767px) {
  .main-menu .navbar { display: none; }
  .mobile-nav { display: block; text-align: right; padding: 10px 0; }
  .mobile-nav-toggle { background: transparent; border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px; }
  .mobile-nav-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: #ff0c00; }
  .mobile-nav-list { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; background: rgba(33, 29, 29, 0.95); }
  .mobile-nav-list li a, .mobile-nav-list li button {
    display: block; width: 100%; text-align: left; padding: 12px 16px; color: #fff; background: none; border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 16px;
  }
  .mobile-nav-list ul { list-style: none; padding-left: 16px; margin: 0; }
}

/* Contact form */
.contact-error { color: #c00; margin: 10px 0; }
.img-cap img { cursor: pointer; }
