@font-face {
  font-family: 'Aptos';
  src: url('../../Aptos-Display.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --FLIblue: rgb(24, 62, 109);
  --FLIgrey: rgb(216, 225, 232);
  --background-select: linear-gradient(to left, #34495e 3rem, #2c3e50 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Aptos', sans-serif;
}

/* General Layout */
.navBackground {
  background-color: white;
  border-bottom: solid 1px grey;
}
.navigation {
  padding: 10px 5%;
  margin: 0 auto;
  max-width: calc(1600px + 10%);
  background-color: white;
  font-family: 'Aptos', sans-serif;
  background: inherit;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  gap: 5px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs ol li:not(:last-child)::after {
  content: "/";
  margin-left: 5px;
  color: #ccc;
}

.breadcrumbs a {
  color: var(--FLIblue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.navigation h1 {
  font-size: 2.8rem;
  color: var(--FLIblue);
  margin-bottom: 6px;
  font-weight: 700;
  font-family: Aptos;
}

.nav-subtitle {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 20px;
}

.nav-search input[type="search"] {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
}

.nav-filters {
  display: flex;
  gap: 10px;
}

.nav-filters button {
  padding: 8px 16px;
  border: 1px solid var(--FLIblue);
  background: white;
  color: var(--FLIblue);
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.nav-filters button.active,
.nav-filters button:hover {
  background: var(--FLIblue);
  color: white;
}


.contentBackground {
  background: linear-gradient(to bottom, var(--FLIblue) 30%, var(--FLIblue) 31%, #add8e6 100%);
}

@media(max-width: 1780px) {
  .viewerCard {
    flex-wrap: wrap;
    gap: 10px;
    max-height: none;
  }
}


#noCards {
  font-family: 'Aptos';
  font-size: 36px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  color: lightgray;
  letter-spacing: 0.05em;
}


.content1 {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 0px;
  background: white;
  border-radius: 0;
  width: 100%;
  overflow-x: hidden;
  
  box-sizing: border-box;
}

@media(max-width:1200px) {
  .content1 {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 20px;
    background: whitesmoke;
  }
}

/* Intro */

.intro {
  margin: 0px auto;
  padding: 10px;
  width: 100%;
  text-align: right;
  justify-content: right;
  color: var(--FLIblue);
  background-color: #f4f6f8;
  border-bottom: 1px solid grey;
  padding-right: 5vw;
}

/* Sidebar Filter */

.filterWrap {
  flex: 0 0 400px;
  background: #f4f6f8;
  border-right: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  /*
  margin-left: calc((100vw - 1600px - 10%) / 2 + 5% - 191px);*/
  margin-left: 1.7vw;
  width: 400px;
  margin-right: 30px;
  border-radius: 12px;
}

@media(max-width:2000px) {
  .filterWrap {
    margin-left: 80px;
  }
}

@media(max-width:1300px) {
  .filterWrap {
    margin-left: 60px;
  }
}

@media(max-width:800px) {
  .filterWrap {
    margin-left: 5px;
    width: 60px;
    flex: 0 0 300px;
    margin-right: 0px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
}


.filterGroup {
  margin-bottom: 20px;
  border-top: solid 1px grey;
}

.filterGroup p {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.filterCard {
  display: inline-block;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 8px 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
}

.filterCard:hover {
  border-color: #113dc0;
  background: #eef3ff;
}

.filterCard input[type="checkbox"] {
  display: none;
}

.filterCard input[type="checkbox"]:checked + span {
  font-weight: bold;
}

.filterCard:has(input:checked) {
  background: #113dc0;
  color: white;
  border-color: #113dc0;
}


.filterWrap h2 {
  font-family: 'Aptos';
  color: var(--FLIblue);
  padding-top: 10px;
  padding-bottom: 10px;
}

.filterWrap label {
  display: block;
  font-family: 'Aptos';
  gap: 0px;
}

.filterOption,
.filterOption2 {
  margin-right: 10px;
}

/* Frame Viewer Grid */
.resultsGrid {
  display: flex;
  flex-direction: column;
  width: 95%;
  gap: 10px;
  padding: 2px;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.viewerCard:hover {
  box-shadow: none;
  border: 1px solid rgb(199, 197, 197);
  transform: scale(1.002);
}

/* Main layout of each frame card */
.viewerCard {
  display: flex;
  background: white;
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  overflow: hidden;
  width: 98%;
  padding: 20px;
  gap: 40px;
  align-items: flex-start;
  position: relative;
  flex-wrap: nowrap;
  box-sizing: border-box;
  max-height: 300px;
  cursor: pointer;
}

@media(max-width:1780px) {
  .viewerCard {
    gap: 10px;
  }
}

@media(max-width:1200px) {
  .viewerCard {
    gap: 5px;
    padding: 5px;
  }
}

/* Left column — 3D model */
.modelContainer {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

model-viewer {
  width: 200px;
  height: 200px;
  background: #f0f4f8;
  border-radius: 6px;
  cursor: default;
}

.viewDetails {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-top: 6px;
  text-align: center;
  text-decoration: underline;
  color: blue;
}

/* Middle column — Info */
.infoContainer {
  padding-left: 40px;
  flex: 0 0 150px;
  min-width: 100px;
}

@media(max-width: 800px) {
  .infoContainer {
    padding-left: 5px;
    text-overflow: ellipsis;
    flex: 0 0 100px;
  }
}

.frameLabel {
  font-size: 1.2rem;
  color: var(--FLIblue);
  margin-bottom: 10px;
  font-family: Aptos;
}

.frameDescription {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

/*middle right*/

.about {
    font-family: Aptos;
  flex: 1;
  min-width: 150px;
  max-width: 450px;
  word-wrap: break-word;
}

.about h2 {
  font-size: 1.2rem;
  font-family: Aptos;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--FLIblue);
}

.about p {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  color: #333;
}


@media(max-width:1300px) {
  .about {
    display:none;
  }
}

.technicalDetails {
  list-style: none;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  padding-top: 26px;
}

.technicalDetails li {
  list-style: none;
}
/* Right column — Actions */
.actionContainer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* Keep aligned right */
  justify-content: center;
  flex: 0 0 80px;          /* Reserve space */
  margin-left: auto;
  gap: 30px;                /* Big vertical gap */
  padding-right: 20px;
  height: 100%;
}

@media(max-width:800px) {
  .actionContainer {
    margin-top: 40px;
  }
}

@media(max-width:460px) {
  .actionContainer {
    display: none;
  }
}


/* Buttons: Enquire / Get Quote */
.enquireBtn,
.quoteBtn,
.datasheetBtn {
  width: 220px;
  height: auto;
  background: transparent;
  color: var(--FLIblue);
  font-weight: bold;
  border: 1.2px solid var(--FLIblue);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
  padding: 5px;
  overflow: hidden;
  margin: 0;
  line-height: normal;
  min-width: 0 !important;
  text-align: center;
  justify-content: center;
}


.enquireBtn:hover,
.quoteBtn:hover,
.datasheetBtn:hover {
  /*background: linear-gradient(to bottom, #f0f8ff, #ddeeff);*/
  background-color: transparent;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  font-weight: bolder;

}





/* Animations */

@keyframes fadeModel {
  from {
    opacity: 0.5;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0.2;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shearPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scaleX(1.3); }
}

@keyframes weightBounce {
  0%   { transform: scale(1) translateY(0); }
  30%  { transform: scale(0.9, 1.03) translateY(5px); }
  50%  { transform: scale(1.02, 0.9) translateY(-5px); }
  70%  { transform: scale(0.95, 1.05) translateY(3px); }
  100% { transform: scale(1) translateY(0); }
}


/* Modals */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: 15% auto;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  height: 600px;
  background-color: white;
  border-radius: 25px;
  border: 1px solid #888;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: popIn 0.4s ease-out;
  text-align: center;
  font-family: Arial, sans-serif;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal p {
  color: var(--FLIblue);
  font-size: 24px;
  padding-top: 10px;
}

.email {
  font-size: 24px;
  color: white;
  background-color: var(--FLIblue);
  padding: 6px;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 12px; right: 12px;
  width: 60px; height: 60px;
  background-color: #eee;
  color: var(--FLIblue);
  font-size: 80px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  background-color: #ff4d4d;
  color: white;
}

.framePreview {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.previewContent {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 1);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 95%;
  height: 98%;
  max-height: 90vh;
  gap: 40px;
  color: white;
  overflow-y: hidden;  /* important so the swoosh doesn't overflow */
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#previewContent::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}



/* Add the elliptical blue swoosh using a ::before pseudo-element */
.previewContent::before {
  content: "";
  position: absolute;
  top: -50%;       /* adjust vertical positioning */
  left: -30%;      /* adjust horizontal positioning */
  width: 150%;     /* big enough to cover area */
  height: 95%;
  background: linear-gradient(
    182deg,
    #4a81c9 63%,
    rgba(24, 62, 102, 1) -13%
  );
  clip-path: ellipse(50% 40% at 50% 50%);
  transform: rotate(1deg);
  z-index: 0;      /* behind content */
  pointer-events: none; /* so it doesn't block clicks */
}


.body.no-scroll {
  overflow: hidden;
}

.previewBlock {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  gap: 0px;
  z-index: 3;
}

.previewBtn {
  margin-top: 3vmin;
}

.previewText {
  font-family: 'Aptos';
  color: white;

}

#previewTitle {
  font-size: 12vmin;
  font-weight: 700;
  margin: 0;
  color: white;
  text-align: right;
  margin-right: 2vw;
}

@media(max-width: 1200px) {
  #previewTitle {
    font-size: 6vmin;
    text-align: left;
    margin-right: 0;
    margin-left: 5vw;
  }
}


.previewText p {
  font-size: 1.1rem;
  margin: 0;
  color: white;
  margin-left: 5.2vw;
  text-align: left;
}


.priceBlock {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  gap: 1rem;
  color: var(--FLIblue);
  text-align: left;
  margin-left: 5vw;
  margin-bottom: 2vw;
}

.priceValue {
  font-size: 5rem;
  font-weight: bold;
  color: white;
}

@media (max-height: 800px) {
  .priceValue {
    font-size: 3rem;
  }
}


.bottomTextWrapper {
  display: flex;
  justify-content: space-between; /* Equal spacing between columns */
  gap: 1rem; /* Optional: space between columns */
  margin-left: 5vw;
  margin-top: calc(80px - 1vmin)
}

@media (max-width: 1700px) {
  .bottomTextWrapper {
    margin-top: calc(40px - 2vh);
  }
}


.dataBlock {
  flex: 1; /* All columns take equal width */
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Space between rows */
}

.dataItem {
  padding: 5px;
}

.dataItem strong {
  display: block;
  margin-bottom: 4px;
  color: var(--FLIblue);
}

.dataItem p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}





#previewModel {
  max-height: 1100px;
  width: 100%;
  height: auto;
  background-color: none;
  aspect-ratio: 1 / 1;  /*square*/
  background: none;
  overflow: visible;
}

.previewModelViewer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.dotWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.arrow {
  all: unset;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 600;
  cursor: pointer;
  color: var(--FLIblue);
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
  padding-bottom: 2px;
}

.arrow:hover {
  transform: scale(1.15);
  color: #004d99; /* optional darker blue on hover */
}

.arrow:active {
  transform: scale(0.95);
  opacity: 0.8;
}


.modelDots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--FLIblue);
}



/* On mobile: stack vertically
M
O
B
I
L
E
*/

@media (max-width: 1000px) {
  .previewContent {
    flex-direction: column;
    overflow-y: scroll;
  }

  .previewText,
  .priceBlock,
  .priceValue,
  #previewTitle,
  #previewDescription {
    color: var(--FLIblue);
  }

  .modelDots,
  .dotWrapper {
    gap: 6px;
    margin: 0;
    padding: 6px;
  }

.arrow {
    color: white !important;
    transition: none;
    transform: none;
    opacity: 1;
    z-index: 9999;
  }

  .arrow:hover,
  .arrow:active {
    transform: none;
    color: white;
    background-color: transparent !important;
    opacity: 1;
    z-index: 999;
  }

  .dotWrapper {
  flex: 0 0 auto;         /* Prevent flex-grow */
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;             /* Just in case */
  box-sizing: border-box;
}

.bottomTextWrapper {
  display: flex;
  padding: 0;
  margin: 0 auto;
  margin-top: 2vmin;
}

#quoteBtn {
  max-width: 40px;
}
}



#previewPart {
  width: 250px;
  height: 250px;
  background-color: transparent;
  background: transparent;
  opacity: 1;
  position: absolute;
  left: 48%;
  display: none;
}



.qtyBox {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #eee;
  padding: 6px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-left: 5vw;
}

  .qtyBox input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    margin-right: 8px;
    font-weight: bold;
    color: var(--FLIblue);
  }

.previewBtn h2 {
  margin-bottom: 8px;
  color: var(--FLIblue);
  margin-left: 5vw;
  margin-top: 2vh;
}

.qtyRow {
  display: flex;
  align-items: center;
  gap: 16px;
}




.btnGroup {
  display: flex;
  flex-direction: row; /* horizontal layout */
  gap: 4px;
}


.btnGroup button {
  background-color: var(--FLIblue);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  font-size: 18px;
  line-height: 1;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.2s ease;
}


/* Hover effect */
.btnGroup button:hover {
  background-color: transparent;
  transform: scale(1.3);
  font-weight: bolder;
}


  .btnGroup button:active {
    transform: scale(0.95);
  }

  .shopBtn {
  background-color: var(--FLIblue);
  color: white;
  padding: 4.6px 4.6px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}


.closePreview {
  position: absolute;
  top: 15px; right: 15px;
  width: 40px; height: 40px;
  font-size: 68px;
  line-height: 32px;
  text-align: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  background-color: transparent;
  transition: background-color 0.1s, color 0.3s;
  color: var(--FLIblue);
  z-index: 4;
}

.closePreview:hover {
  background-color: white;
  color: red;
}

@media (max-width: 1200px) {
  .previewBtn {
  margin-top: 200px;
}
}

@media (max-width: 1000px) {
  .previewBtn  {
    margin-top: 20px;
    margin-bottom: 50px;
  }


  .qtyRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-left: 5vw;
    transform: scale(0.9);
    transform-origin: left;
  }

  .qtyBox {
    margin-left: 0;
  }

  .previewBtn h2 {
    margin-left: 5vw;
    font-size: 16px;
  }

  .qtyBox input {
    width: 50px;
    font-size: 14px;
  }

  .btnGroup button {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }
}



