.products-hero {
    width: 100%;
    background-color: #001740; 
    padding-top: 10px; 
    overflow: hidden; 
}

.products-hero-container {
    display: flex;
    justify-content: center; 
    align-items: stretch; 
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    gap: 10px; 
}


.products-hero-left {
    width: 45%;
    display: flex;
    justify-content: flex-end; 
    align-items: flex-end; 
}

.products-hero-left img {
    max-height: 400px; 
    width: auto;
    display: block;
}


.products-hero-right {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: center; 
    padding-bottom: 80px; 
}

.products-title {
    font-family: 'Candal', sans-serif;
    font-weight: 400; 
    font-size: 70px;
    color: #f4c400;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: 2px; 
}


.products-title .title-small {
    font-size: 50px; 
    display: block;  
}

.products-desc {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 18px; 
    color: white;
    line-height: 1.6;
    margin: 0; 
}


.products-showcase {
    background-color: white; 
    padding: 50px 0;
}


.site-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


.showcase-heading {
    font-family: 'Candal', sans-serif;
    font-size: 48px;
    color: #001740;
    text-align: center;
    margin-bottom: 60px; 
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-bottom: 90px; 
}


.product-card {
    background-color: #fffdf0; 
    border-radius: 20px; 
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease; 
}


.product-card:hover {
    transform: translateY(-15px);
}


.product-image-box {
    width: 100%;
    aspect-ratio: 1 / 1; 
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    height: auto;
    object-fit: contain; 
}


.product-name {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    color: #001740;
    font-weight: 800; 
    margin: 0 0 10px 0;
}


.product-price {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #001740;
    margin: 0 0 25px 0;
}


.try-on-btn {
    align-self: center; 
    width: auto;
}


.modal-card.vto-card {
    background-color: #ffffd0;
    border: 5px solid #D3E9F8; 
    border-radius: 20px; 
}



.vto-placeholder-text {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: rgba(0,0,0,0.6);
    margin-top: 30px;
    font-style: italic;
}


#vto-modal-overlay {
  display: none; 
  justify-content: center;
  align-items: flex-start; 
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  overflow-y: auto; 
  padding: 40px 10px; 
  box-sizing: border-box;
}


.vto-modal-content {
  position: relative; 
  background-color: #fffdf0; 
  border: 18px solid #0f2a71; 
  border-radius: 20px;
  width: 950px;
  max-width: 95%;
  padding: 30px 40px;
  box-sizing: border-box;
  font-family: sans-serif;
  margin: auto; 
}


.vto-left-column {
  flex: 1 1 400px; 
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 20px;
}


.media-frame {
  width: 100%;
  max-width: 400px; 
  aspect-ratio: 3 / 4; 
  background-color: #e9ecef; 
  border-radius: 8px;
  position: relative; 
  overflow: hidden; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}


#uploaded-user-photo, #vto-webcam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

#vto-webcam-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}


.modal-close-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 35px;
  height: 35px; 
  cursor: pointer;
  z-index: 10;
  background-image: url('../images/icon_close.png'); 
  background-size: cover;
}

.modal-close-icon:hover {
  background-image: url('../images/icon_close_hover.png');
}


.vto-heading {
  font-family: 'Candal', sans-serif;
  font-size: 36px;
  color: #0f2a71;
  margin-bottom: 50px;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 2px;
}


.vto-content-wrapper {
  display: flex;
  gap: 40px;
}


.vto-left-column {
  flex: 1 1 400px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center; 
  gap: 70px; 
}

.vto-right-col {
  flex: 1; 
  display: flex;
  flex-direction: column;
  gap: 30px;
}


#media-container {
  width: 100%;
  height: 400px;
  background-color: #e9ecef;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative; 
}

.placeholder-text {
  color: #6c757d;
  font-size: 14px;
}


.control-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-title {
  color: #0f2a71;
  font-weight: bold;
  margin: 0;
  font-size: 18px;
}

.primary-btn, .action-btn {
  background-color: #0f2a71;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  font-family: 'Nunito', sans-serif;
}

.primary-btn:hover, .action-btn:hover {
  background-color: #f4c400 !important; 
  color: #0f2a71 !important;
  font-weight: bolder !important;
}


input[type="file"] {
  display: none;
}

.upload-section {
  display: flex;
  align-items: center;
  gap: 15px;
}


.glasses-preview-box {
  width: 100%;
  height: 120px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#current-glasses-img {
  max-width: 80%;
  max-height: 80%;
}


:root {
  --vto-cream: #FAF7F0; 
  --vto-dark-blue: #0A1931; 
  --vto-accent-blue: #185ADB; 
}


.vto-modal-content {
    background-color: var(--vto-cream);
    color: var(--vto-dark-blue);
    border: 5px solid var(--vto-dark-blue); 
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: var(--vto-cream); 
    background-color: var(--vto-dark-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    z-index: 1000;
}

.vto-main-title {
    font-family: Arial, sans-serif;
    text-align: center;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--vto-dark-blue);
}


.vto-editor-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
}


.vto-left-column {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-frame {
    width: 100%;
    aspect-ratio: 1 / 1; 
    background-color: #f0f0f0;
    border-radius: 8px;
    border: 2px solid #ccc;
    position: relative; 
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.placeholder-text {
    color: #888;
    text-align: center;
    padding: 20px;
}


#uploaded-user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
    position: absolute;
}


.draggable-overlay {
    position: absolute;
    z-index: 10;
    cursor: move;
    transform-origin: center center; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1) rotate(0deg); 
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}


.save-action-btn {
    align-self: flex-start; 
    background-color: var(--vto-dark-blue);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
}


.vto-right-column {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.control-group {
    border-bottom: 2px solid #ccc;
    padding-bottom: 15px;
}

.label-with-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.control-label {
    font-size: 1rem;
    color: var(--vto-dark-blue);
}

.icon-blue {
    color: var(--vto-accent-blue);
    font-size: 1.2rem;
}


.upload-browse-row {
    display: flex;
    gap: 10px;
}

#fake-upload-path {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid var(--vto-dark-blue);
    border-radius: 4px;
    background: white;
    color: #555;
    font-size: 0.9rem;
}

.browse-btn {
    background-color: var(--vto-dark-blue);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider (Percent + Input) */
.slider-data-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

#resize-percent-display, #rotate-degree-display {
    color: var(--vto-accent-blue);
    font-weight: bold;
    width: 45px; 
}


.vto-slider {
  -webkit-appearance: none;
  flex-grow: 1;
  height: 6px;
  background: var(--vto-dark-blue);
  border-radius: 3px;
  outline: none;
}

.vto-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--vto-accent-blue);
  border-radius: 50%;
  cursor: pointer;
}


.standalone-glasses-preview {
    width: 100%;
    min-height: 100px;
    max-height: 150px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.standalone-glasses-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}


.contact-lens-section {
    background-color: #0f2a71; 
    padding: 50px 20px 40px 20px;
    width: 100%;
    overflow: hidden;
}

.contact-lens-heading {
    font-family: 'Candal', sans-serif;
    font-size: 48px;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.contact-lens-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; 
}


.contact-lens-text {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: white;
    text-align: left;
    max-width: 1200px; 
    margin: 0 -20px; 
	margin-left: 300px;
    z-index: 2; 
    position: relative;
	align-self: flex-end;
	text-align: justify;
}

.contact-lens-text p {
    margin-bottom: 25px; 
}


.highlight-yellow {
    color: #f4c400;
    font-weight: 800; 
}


.contact-lens-img {
    width: 100%;
    max-width: 1300px;
	margin-left: -120px;
    height: auto;
    display: block;
    z-index: 1;
    margin-top: -440px; 
}


.igel-section {
    background-color: #fffdf0; 
    padding: 50px 0;
    width: 100%;
}

.igel-wrapper {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 40px; 
}


.igel-left-col {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px; 
}

.apple-vision-logo {
    width: 100%;
    max-width: 500px; 
    height: auto;
    margin-bottom: 25px;
	margin-top: -180px;
}

.igel-desc-text {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #0f2a71; 
    margin: 0;
	text-align: justify;
}

.igel-desc-text strong {
    font-weight: 800;
}


.igel-right-col {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
}

.igel-model-img {
    width: 100%;
    max-width: 500px; 
    height: auto;
    object-fit: contain;
}


.promotions-section {
    background-color: #f4c400; 
    padding: 45px 20px;
    width: 100%;
    overflow: hidden;
}


.promo-heading-row {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.promo-title {
    font-family: 'Candal', sans-serif;
    font-size: 48px;
    color: #001740; 
    margin: 0;
    line-height: 1;
}

.promo-subtitle {
    font-family: 'Candal', sans-serif;
    font-size: 36px;
    color: rgba(0, 23, 64, 0.5); 
    margin: 0;
    line-height: 1;
}

.promo-icon {
    height: 80px; 
    width: auto;
    object-fit: contain;
}


.promo-content-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}


.promo-left {
    flex: 1;
    display: flex;
    justify-content: flex-end; 
}

.promo-big-text {
    font-family: 'Nunito', sans-serif;
    font-size: 150px; 
    font-weight: 900; 
    color: #001740;
    line-height: 0.8; 
    letter-spacing: -5px; 
}


.promo-right {
    flex: 2.0; 
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #001740;
    text-align: justify; 
}

.promo-right p {
    margin: 0 0 5px 0; 
}

.promo-right p:last-child {
    margin-bottom: 0;
}

.promo-right strong {
    font-weight: 800; 
}


.site-footer {
    position: relative; 
}

.scroll-to-top {
    position: absolute;
    bottom: 100%;
    right: 30px; 
    margin-bottom: 10px;
    z-index: 9999; 
    width: 60px; 
    height: 60px;
    display: flex; 
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.scroll-to-top img {
    width: 50px; 
    height: auto;
    display: block;
}

.scroll-to-top:hover {
    transform: translateY(-5px); 
}

@media screen and (max-width: 1024px) {
    .contact-lens-img {
    margin-top: -380px; 
}
	
	.contact-lens-text {
    margin: 0 -20px; 
	margin-left: 250px;
}
	
	
.apple-vision-logo {
    width: 100%;
    max-width: 500px; 
    height: auto;
    margin-bottom: 25px;
	margin-top: -100px;
}
}


@media screen and (max-width: 800px) {
	
		.scroll-to-top {
    position: absolute;
    bottom: 100%;
    right: 10px; 
    margin-bottom: 5px; 
}
	
	.scroll-to-top img {
    width: 30px;
}
    

    h2, h3, h4,
    .showcase-heading, .vto-heading, .contact-lens-heading, 
    .promo-title, .title-small, .promo-subtitle {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }


    .products-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }


    .product-name {
        font-size: 14px !important; 
    }

 
    p, span, .products-desc, .product-price, .placeholder-text, 
    .group-title, .contact-lens-text p, .igel-desc-text, .promo-right p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }


    .try-on-btn, .action-btn, .primary-btn, .custom-file-upload {
        font-size: 12px !important;
        padding: 8px 15px !important;
    }


    .products-hero-container, .site-container, .igel-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }


    .products-hero-left {
        width: 40% !important;
    }
    
    .products-hero-left img {
        max-height: 250px !important;
    }
    
    .products-hero-right {
        width: 60% !important;
        padding-bottom: 20px !important;
    }


    .vto-modal-content {
        width: 90% !important;
        height: 85vh !important;
        padding: 30px 20px !important;
        overflow-y: auto !important; 
    }

    .vto-editor-container {
        flex-direction: column !important; 
        gap: 30px !important;
    }

    .vto-left-column, .vto-right-column {
        width: 100% !important;
    }

    .media-frame {
        height: 300px !important; 
    }


    .igel-wrapper {
        gap: 20px !important;
        align-items: center !important;
    }

    .igel-left-col {
        width: 60% !important;
    }

    .igel-right-col {
        width: 40% !important;
    }
	
	.igel-model-img {
    margin-top: -30px;
}

 
    .apple-vision-logo {
        max-width: 250px !important; 
        height: auto !important;
        margin-bottom: 15px !important;
		margin-top: -200px;
    }


    .promo-big-text {
        font-size: 70px !important; 
        line-height: 1 !important;
    }


    .promo-content-row {
        display: flex !important;
        align-items: center !important; 
        gap: 20px !important;
    }

    .promo-left {
        width: 40% !important;
        text-align: right !important; 
    }

    .promo-right {
        width: 60% !important;
		margin-right:70px;
    }
	
	.showcase-heading, .promo-heading-row  {
    margin-top: -20px; 
}
	
	.promo-heading-row  {
    margin-bottom: 0px; 
}
	
	.products-showcase {
    margin-bottom: -80px; 
}
	
	.igel-section {
    margin-bottom: -40px; 
}
	
	.contact-lens-text {
    max-width: 1200px; 
    margin: 0 0px; 
	margin-left: 230px;
}

.contact-lens-img {
    width: 100%;
    max-width: 1000px;
	margin-left: -80px;
    height: auto;
    display: block;
    z-index: 1;
    margin-top: -320px; 
}
}


@media screen and (max-width: 600px) {
	
			.scroll-to-top {
    position: absolute;
    bottom: 100%; 
    right: 10px; 
    margin-bottom: -5px; 
}
	
	.scroll-to-top img {
    width: 20px;
}
    

    h1, h2, h3, h4, 
    .showcase-heading, .vto-heading, .contact-lens-heading, 
    .promo-title, .title-small, .promo-subtitle, .product-name {
        font-size: 20px !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
    }


    .products-title {
        font-size: 28px !important; 
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
    }


    p, span, .products-desc, .product-price, .placeholder-text, 
    .group-title, .contact-lens-text p, .igel-desc-text, .promo-right p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }


    .try-on-btn, .action-btn, .primary-btn, .custom-file-upload {
        font-size: 10px !important;
        padding: 8px 16px !important; 
    }


    .site-container, .igel-wrapper, .contact-lens-wrapper {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important; 
        gap: 30px !important; 
        text-align: center !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

 
    .products-hero {
        padding-top: 50px !important; 
        padding-bottom: 0 !important;
    }

    .products-hero-container {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        gap: 30px !important; 
    }

    .products-hero-right { 
        width: 100% !important;
        order: 1 !important; 
        padding-bottom: 0 !important;
        text-align: center !important;
    }

    .products-hero-left {
        width: 100% !important;
        order: 2 !important; 
        justify-content: center !important;
    }

    .products-hero-left img {
        max-height: 250px !important; 
        margin: 0 auto !important;
    }


    .showcase-heading {
        margin-bottom: 20px !important; 
        margin-top: 40px !important;
    }

    .showcase-heading:first-of-type {
        margin-top: 0 !important;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .product-card {
        max-width: 260px !important; 
        margin: 0 auto !important; 
        padding: 20px 15px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-image-box {
        margin-bottom: 15px !important;
		width: 80% !important;
    }


	
    .contact-lens-text {
        width: 100% !important;
        order: 1 !important; 
        margin: 0 !important; 
        text-align: center !important; 
        line-height: 1.2 !important; 
    }
	
	.contact-lens-heading {
        margin-bottom: 5px !important;
    }

    .contact-lens-text p {
        display: inline !important; 
        line-height: inherit !important; 
    }
    
    .contact-lens-text br {
        display: none !important; 
    }

    .contact-lens-img {
        width: 130% !important;
        order: 2 !important; 
        margin: -80px 10px 0 0 !important; 
		align-items: center;
		align-content: center;
    }
	

    .igel-left-col { 
        width: 100% !important;
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .apple-vision-logo {
        max-width: 200px !important; 
        margin: -10px auto 15px auto !important; 
    }

    .igel-desc-text {
        text-align: center !important;
    }

    .igel-right-col { 
        width: 100% !important;
        order: 2 !important; 
        justify-content: center !important;
    }

    .igel-model-img {
        margin: 0 auto !important;
    }


    .promo-icon {
        display: none !important; 
    }

    .promo-heading-row {
        flex-direction: column !important;
        gap: 0px !important;
        margin-bottom: 20px !important;
    }

    .promo-content-row {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important; 
        justify-content: center !important;
        align-items: center !important; 
        gap: 5px !important;
        padding: 0 !important;
    }

    .promo-left {
        width: auto !important;
        flex: none !important;
    }

    .promo-big-text {
        font-size: 48px !important;
        letter-spacing: -2px !important; 
        line-height: 1 !important;
    }

    .promo-right {
        display: contents !important; 
    }

    .promo-right p:first-child {
        width: auto !important; 
        margin: 0 !important;
        display: flex !important;
        align-items: center !important; 
        font-size: 14px !important; 
    }

    .promo-right p:last-child {
        width: 100% !important; 
        text-align: center !important;
        margin-top: 15px !important;
    }
	

.promo-right p:first-child b, 
.promo-right p:first-child strong {
    margin-right: 0px !important; 
    display: inline-block !important;
}


.promo-right p:first-child {
    display: block !important;
    text-indent: 1px !important; 
    word-spacing: 0px !important;
}


    .vto-modal-content {
        width: 95% !important;
        height: 90vh !important;
        padding: 20px !important;
        overflow-y: auto !important;
    }

    .vto-editor-container {
        flex-direction: column !important;
    }

    .vto-left-column, .vto-right-column {
        width: 100% !important;
        flex: none !important;
    }

    .media-frame {
        height: 300px !important;
    }
}