﻿.header{
    position: relative;
    height: 100%;
    
}

.header img{
    max-width: 100%;
}
.header input.form-control{
    border-radius: 20px;
}
.header .btn-primary {
    height: 45px;
}
.header .navbar-toggler{
    color:var(--bg-primary-btn);
    border:0
}
/*.navbar-collapse {
  position: absolute;
  right: 0px;
  top: 0px;
  height: 95vh;
  background-color:rgba(0, 0, 0, 0.5);;
  width: 100%;
}*/
.show ul{
    width: 100%;
    background: #fff;
    height: 100%;
    float: right;
}
.header .collapsing {
    transition: none !important;
}
.header a {
    height: 30px;
}
.header a:hover {
    color:var(--text-primary-color);
    border-bottom:3px solid var(--text-primary-color);
    cursor:pointer
}
.header .dropdown:hover .dropdown-menu {
    display: flex;
    margin-top: 0; /* remove the gap so it doesn't close */
}
.dropdown-full{
    position: static;
}
.submenu{
    width: 80%;
    /*position: absolute;*/
    border:0;
    /*top: 45px;*/
    left: 10%;
    height: 70vh;
}
.header .dropdown-toggle::after{
    display: none;
}

.imgLogo:hover{
    border-bottom:0 !important
}
.header select{
    height: 20px;
    padding: 0;
    margin-top:2px;
    font-weight:var(--font-weight-bold);
    border: 0;
    padding-left:5px;
    color: var(--text-primary-color)
}
.language-switcher{
    text-transform: uppercase;
    height: 20px;
    padding: 0;
    margin-top:2px;
    font-weight:var(--font-weight-bold);
    border: 0;
    padding-left:5px;
    color: var(--text-primary-color)
}
.ISCodeBtn{
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

.header-overlay{
    height: 70vh;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: white;
    width: 100%;
    top: 0;
}
#headerSearchContainer{
    height: 75%;
    overflow-y: auto;
    overflow-x: hidden;
}
#headerSearchContainer::-webkit-scrollbar{
    display: none;
}

#headerSearchContainer .cardBoxHoriz{
    padding-left: 0px!important;

}
#headerSearchContainer .imgGiftCardFixed{
    height: 100px;
}
#headerSearchContainer .titleCard{
    padding-left: 0px!important;
}

.header .btnActive{
    border-bottom: 3px solid var(--text-primary-color);
}

.cart-dropdown-menu{
    width: 450px;
    right: 0;
    margin-top: 5px;
}
.header .btn-transparent:hover, .header .btn-transparent:active{
    background-color: transparent;
    color:#000
}
sup{
    font-size: 14px;
}
@media only screen and (max-width: 1600px)  {
  
}
@media only screen and (max-width: 1180px){
    
    .labelHeader{
        font-size:12px
    }
}
@media only screen and (max-width: 820px){
    .labelHeader{
        font-size:10px
    }
}
@media only screen and (max-width: 780px){
    .header-overlay{
        width: 100%;
        left: 0px;
    }
    
}

.cart-icon-mobile {
    height: 30px;
}
.cart-icon-mobile:hover {
    color:var(--text-primary-color);
    border: 0 !important;
    cursor:pointer
}

/* BANNER MOBILE APP */

.banner-container {
  display: flex;
  width: 100%;
  background-color: #000;
  align-items: center;
  padding: 14px 16px;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.banner-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.banner-text {
  margin-left: 16px;
  color: white;
  flex-grow: 1;
}

.banner-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.banner-button {
  background-color: white;
  color: black;
  font-size: 14px;
  font-weight: 600;
  border-radius: 16px;
  padding: 6px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.banner-button:hover {
  background-color: #f0f0f0;
}

/* ===========================
   MOBILE FULLSCREEN POPUP
   =========================== */

/* Covers the entire screen and hides the rest of the content */
.mobile-app-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
}

/* Inner container, simulates the old "modal-dialog" */
.mobile-app-popup .popup-inner {
  width: 100%;
}

/* Main content, preserves the original layout */
.mobile-app-popup .popup-content {
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}

#modalAppHeader {
  font-size: 26px;
  font-weight: 600;
  background: linear-gradient(90deg, #C22123 0%, #E85047 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-buttons {
  display: flex;
  justify-content: center; /* centra orizzontalmente (opzionale) */
  align-items: center;
  gap: 27px; /* distanza tra i due pulsanti */
}

.store-buttons img {
  height: 47px; /* dimensione coerente per entrambe */
  cursor: pointer;
  transition: transform 0.2s ease;
}

.store-buttons a:hover {
  opacity: 1;
}

/* Red button identical to the original one */
.btn-modal-app {
  background: linear-gradient(90deg, #C22123 0%, #E85047 100%);
  color: white;
}

@media (max-width: 768px) {
  /* Prevent body from scrolling when the popup is open */
  body.popup-active {
    overflow: hidden !important;
  }

  /* Hide main content when the popup is visible */
  body.popup-active #main-content {
    display: none !important;
  }

  /* Hide header, footer and other containers under the popup */
  body.popup-active #header-container,
  body.popup-active #iaw-container,
  body.popup-active .bg-footer {
    display: none !important;
  }
}

/* ===========================
   DESKTOP POPUP
   =========================== */

.desktop-app-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.desktop-popup-inner {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.2);
}

.desktop-popup-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.desktop-popup-content {
  max-width: 420px;
}

#modalAppHeaderDesktop {
  font-size: 26px;
  font-weight: 600;
  background: linear-gradient(90deg, #C22123 0%, #E85047 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-app-popup a {
  font-size: 14px;
  cursor: pointer;
}

/* Desktop layout fix: QR code + store buttons side by side */
@media (min-width: 768px) {
  #desktopAppPopup .desktop-popup-content {
    display: flex;
    flex-direction: column;
  }

  /* Wrap QR + store buttons horizontally */
  #desktopAppPopup .qr-and-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  /* Store buttons stay vertical INSIDE their column */
  #desktopAppPopup .store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.w-280 {
  width: 280px;
}

.h-105 {
  height: 105% !important;
}

.mw-815 {
  max-width: 815px !important;
}

.px-4rem {
  padding-right: 4rem !important;
  padding-left: 4rem !important;
}

.px-5rem {
  padding-right: 5rem !important;
  padding-left: 5rem !important;
}

.save-credit {
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 18px;
  word-wrap: break-word;
}

.popup-close-btn {
  font-size: 24px;
  font-weight: bold;
}

.popup-close-btn:active,
.popup-close-btn:focus {
  opacity: 0.7;
}
