/* ================= GLOBAL RESET ================= */


*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==============================
   Transducer Extended Font Family
   ============================== */

/* Hairline */
@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedHairline.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedHairlineOblique.otf") format("opentype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* Regular */
@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedRegularOblique.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedMediumOblique.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedBoldOblique.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Black */
@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Transducer Extended";
  src: url("transducer/Transducer-ExtendedBlackOblique.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

html,
body {
  height: 100%;
}


body {
  margin: 0;
  font-family: "Transducer Extended", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  display: flex;
  flex-direction: column;
}


/* Keeps footer at bottom */
.page-content {
  flex: 1;
}


/* ================= SITE INTRO OVERLAY ================= */


#site-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 99999;


  display: flex;
  align-items: center;
  justify-content: center;


  opacity: 1;
  transition: opacity 0.8s ease;
}


#site-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}


#site-intro video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;


  object-fit: contain;
  display: block;
  background: #000;
}


/* ================= HEADER ================= */


.header {
  background: #111;
  width: 100%;
  position: relative;
  border-bottom: 3px solid #FFD700;
  z-index: 1000;
}


.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
}


.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}


.logo img {
  height: 36px;
  display: block;
}



/* ================= NAVIGATION ================= */


.nav-links {
  margin-left: auto;
  display: flex;
}


.nav-links a {
  color: #fff;
  margin-left: 16px;
  text-decoration: none;
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  margin-left: auto;
  cursor: pointer;
}

.cart-link {
  margin-left: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.cart-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #FFD700;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================= HERO / INTRO ================= */


.hero {
  background: #000;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}


.intro {
  padding: 40px 20px;
  text-align: center;
}

/* ================= PAGE TITLE ================= */

.page-title {
  max-width: var(--site-width); /* same width as menu */
  margin: 0 auto;

  background: #FFD700;
  color: #111;
  border-bottom: 3px solid #FFD700;

  text-align: center;
  padding: 28px 20px;

}

.page-title h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.page-title p {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.9;
}

/* video box*/

.video-section {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.video-wrapper {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}


/* ================= CARDS / PRODUCTS ================= */


.categories,
.product-list {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}


/* Plastic grey card look */
.card,
.product {
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 250px;
  position: relative;


  background: linear-gradient(145deg, #fafafa, #f8f8f8);
  border: 1px solid rgba(0, 0, 0, 0.12);


  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.12);
}


.card {
  display: flex;
  flex-direction: column;
}


.card a {
  margin-top: auto;
  font-weight: bold;
  text-decoration: none;
}
/*WATERMARK*/
.card {
  position: relative;
  overflow: hidden;
}


.card::after {
  content: "";
  position: absolute;


  top: 50%;
  left: 50%;


  width: 80%;
  height: 80%;


  transform: translate(-50%, -50%);


  background-image: var(--watermark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;


  opacity: 0.80;
  pointer-events: none;


  transform: rotate(45deg);
}


/* Sub-products */
.sub-products {
  margin-top: 6px;
  margin-left: -20px;
  font-size: 0.95em;
  list-style-type: circle;
}

.sub-products li {
  margin: 3px 0;
}

/* ================= CARD LIST TYPOGRAPHY ================= */

/* All lists inside cards (and product cards too, if you use .product similarly) */
.card ul,
.product ul {
  font-size: 14px;      
  line-height: 1.45;
  margin: 10px 0 0;
  padding-left: 18px;   /* controls bullet indent */
}

.card li,
.product li {
  margin: 4px 0;
}

/* Nested lists (your .sub-products) slightly smaller */
.card ul ul,
.product ul ul,
.card .sub-products,
.product .sub-products {
  font-size: 13px;      
  margin-top: 6px;
}

/* ===== PRODUCT DEPENDENCY VISUALIZATION ===== */


/* Parent product (EMU PRO) */
.product.parent {
  border: 2px solid #FFD700;
  background: linear-gradient(145deg, #fafafa, #f8f8f8);
}


/* Dependent products */
.product.dependency {
  opacity: 0.9;
  padding-top: 38px;

  border-left: 3px solid #FFD700;

  box-shadow:
    inset 3px 0 3px rgba(255, 215, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 3px 14px rgba(0, 0, 0, 0.12);
}


/* Dependency badge */
.product .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #111;
  color: #FFD700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ===== PRODUCT STATUS (icon + small text) ===== */

.product-meta .js-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;      /* small status text */
  opacity: 0.9;
}

/* base circle */
.product-meta .js-status::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* IN_STOCK: green filled + white check */
.product-meta .status-in-stock::before {
  background: #2ecc71;
  color: #fff;
  content: "✓";
}

/* ORDERABLE: white fill + green outline + green check */
.product-meta .status-orderable::before {
  background: #fff;
  border: 2px solid #2ecc71;
  color: #2ecc71;
  content: "✓";
}

/* UNAVAILABLE: red filled + white X */
.product-meta .status-unavailable::before {
  background: #e74c3c;
  color: #fff;
  content: "✕";
}

/* ===== STATUS TOOLTIP ===== */

.product-meta .js-status {
  position: relative;
  cursor: help;
}

/* Tooltip bubble */
.product-meta .js-status:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 50;

  max-width: 260px;
  white-space: normal;

  background: #111;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;

  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}


/* Use a separate element for arrow without touching your icon */
.product-meta .js-status .status-arrow {
  display: none;
}
.add-modal { display: none; }
.add-modal.is-open { display: block; }
/* ================= ADD-TO-CART MODAL ================= */

.add-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 20000; /* above header/footer, below intro (99999) */
}

.add-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* backdrop */
.add-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

/* modal card */
.add-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 1; /* above backdrop */
}


.product-meta .js-status:hover .status-arrow {
  display: block;
  position: absolute;
  left: 10px;
  top: calc(100% + 2px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #111;
}

/* Keep space at bottom so button doesn't overlap text */
.product {
  padding-bottom: 64px; /* room for button */
}

/* Pin the add-to-cart button to bottom-right */
.product .add-to-cart {
  position: absolute;
  left: 16px;
  bottom: 16px;

  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.product .add-to-cart:hover {
  background: #333;
}

.product .add-to-cart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Make tooltip always appear above neighboring cards */
.product:hover {
  z-index: 5;
}

/* Ensure the hovered status itself is on top */
.product-meta .js-status:hover {
  z-index: 10;
}

/* Keep price + status always the same distance above the button */
.product {
  display: flex;
  flex-direction: column;
}

/* Let the description stretch, not the meta */
.product > p {
  flex-grow: 1;
}

/* Fixed spacing between meta and button */
.product .product-meta {
  margin-bottom: 2px;
}

/* Button sits at the bottom-left */
.product .add-to-cart {
  margin-top: auto;
  align-self: flex-start;
}

/* ================= PRODUCT THUMBNAIL ================= */


.product-thumb {
  position: absolute;
  top: 10px;
  right: 10px;


  width: 60px;
  height: 60px;
  object-fit: contain;


  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
}

/*===================PRODUCT DETAILS ==================*/

.datasheet {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.datasheet-hero {
  text-align: center;
}

.datasheet-hero img {
  max-width: 100%;
  margin: 30px 0;
}

.datasheet-section {
  margin-top: 50px;
}

.datasheet h2 {
  background: #f2f2f2;
  padding: 12px 16px;
  border-left: 4px solid #FFD700;
  margin: 40px 0 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th {
  text-align: left;
  padding: 10px;
  background: #111;
  color: #fff;
}

.spec-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ccc;
}

/* ================ PRODUCT FRAME ================ */

#product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  z-index: 10000;
}

#product-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-inner {
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#product-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.product-modal iframe {
  background: #000;
}

/* Slightly tighter hero when inside modal */
.product-modal iframe .page-title {
  padding: 40px 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.datasheet p {
  text-align: justify;
  hyphens: auto;
}

/* ================= CONTACT FORM ================= */


.contact-form {
  max-width: 500px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}


.contact-form button {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
}


.contact-form button:hover {
  background: #333;
}


/* ================= MAP ================= */


.map-section {
  padding: 40px 20px;
  text-align: center;
}


.map-container {
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
}


.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}


/* ================= SLIDER ================= */


.product-gallery {
  width: 80%;
  max-width: 1000px;
  margin: 40px auto;
}


.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
}


.slides {
  position: relative;
  width: 100%;
  height: 100%;
}


.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}


.slides img.active {
  opacity: 1;
}


.slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 10;
}


.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* ================= FOOTER UTILITY BAR ================= */

.footer-utility {
  background: #000;
  border-top: 3px solid #FFD700;
}

.footer-utility-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 16px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social,
.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-utility a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
}

.footer-utility a:hover {
  opacity: 1;
  text-decoration: underline;
}



/* ================= FOOTER ================= */


.site-footer {
  width: 100%;
}



.footer-background {
  min-height: 200px;
  background: #111 url('/img/footer.png') center / contain no-repeat;
  display: flex;
  align-items: center;
  border-top: 3px solid black;
}


.footer-content {
  color: #fff;
  font-size: 18px;
  padding: 20px;
}


/* ================= LIGHTBOX ================= */


#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


#lightbox.active {
  display: flex;
}


#lightbox img {
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}


.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}


/* ================= MOBILE ================= */


@media (max-width: 768px) {


  .menu-toggle {
    display: block;
  }
  
  .page-title h1 {
    font-size: 24px;
  }

  .page-title p {
    font-size: 14px;
  }

   .video-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .video-wrapper {
    max-width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2000;
  }

  .footer-utility-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }


  .nav-links a {
    margin: 10px 0;
  }


  .site-title {
    font-size: 16px;
  }


  .footer-content {
    font-size: 12px;
  }

  .footer-legal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.footer-legal a {
  font-size: 8px;
  line-height: 1.4;
  white-space: normal;
}


  .slider {
    aspect-ratio: 4 / 3;
  }


  .product-gallery {
    width: 92%;
  }

  .video-section {
  max-width: 100%;
}

  .product-thumb {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .card ul,
  .product ul {
    font-size: 13px;
  }

  .card ul ul,
  .product ul ul,
  .card .sub-products,
  .product .sub-products {
    font-size: 12px;
  }
}


/* ================= SINGLE IMAGE FIX ================= */


.slider.single-image {
  aspect-ratio: auto;
  overflow: visible;
  background: none;
}


.slider.single-image img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* ================= FORCE 1080P BEHAVIOR ON ULTRAWIDE ================= */

@media (min-width: 1280px) {


 
  /* Lock the entire page to 1080p logic */
  body {
    overflow-x: hidden;
  }

  .video-section 
  main,
  header,
  footer,
  .page-content,
  .categories,
  .product-list,
  .footer-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }


  /* FORCE card wrapping like 1080p */
  .categories,
  .product-list {
    justify-content: flex-start;
  }


  .product-card {
    flex: 0 0 300px; /* ← use your real card width */
  }


  /* Fix footer flex explosion */
  footer,
  .footer-content {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
/* ================= GLOBAL CONTENT WIDTH LOCK ================= */


:root {
  --site-width: 1280px; /* ← this is the magic number */
}

.video-section 
.header-inner,
.page-content,
.hero,
.intro {
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
}

/* ================= GDPR ================= */

.yt-consent {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.yt-consent iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-consent::before {
  content: "A videó megtekintéséhez cookie-hozzájárulás szükséges";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.6);
}

/* ================= GDPR BANNER ================= */

#gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: #fff;
  padding: 16px;
  display: none;
  z-index: 99999;
}

#gdpr-banner p {
  margin: 0 0 10px;
  font-size: 14px;
}

#gdpr-banner a {
  color: #FFD700;
}

.gdpr-buttons {
  display: flex;
  gap: 10px;
}

.gdpr-buttons button {
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.gdpr-buttons button[data-consent="accept"] {
  background: #FFD700;
  color: #111;
}

.gdpr-buttons button[data-consent="reject"] {
  background: #333;
  color: #fff;
}


