/* Global Styles */
body {
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #555555;
}

a {
  color: #555555;
  text-decoration: none;
}

a:visited {
  color: #555555;
  text-decoration: none;
}

/* Navbar */
.navbar {
    background: #fff;
    color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: #333;
}

/* Mobile menu overlay */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: #fff;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.mobile-menu a {
    color: #555;
    padding: 12px 0;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-menu.active {
        max-height: 300px;
        padding: 15px 20px;
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 30px;
    background: url('/static/images/french-alps.jpg') center center / cover no-repeat;
    position: relative;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero .logo,
.hero p {
    position: relative;
    z-index: 2;
}

.hero .logo {
    font-size: 3rem;
    font-weight: bold;
}

.hero p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Product Grid */
.formContainer {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-sizing: border-box;
}

.formHeader {
    text-align: center;
    padding: 20px;
}

.formHeader h1 {
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 10px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    padding: 10px;
}

.product-card:hover {
    #transform: scale(1.02);
}

.product-card img {
    width: 100%;
    height: 200px;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.centered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.centered-list li {
    display: flex;              /* NOT inline-flex */
    align-items: center;
    justify-content: center;    /* centers bullet + text together */
    gap: 0.5em;
    margin: 0.4em 0;
    text-align: center;
}

/* Custom bullet */
.centered-list li::before {
    content: "";
    font-size: 1.2em;
    line-height: 1;
}


.info {
    padding: 10px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.info p {
    font-size: 0.95rem;
    margin: 0 0 8px;
    color: #555;
}

.price {
    font-weight: bold;
    font-size: 1rem;
    color: #46B1E1;
    margin-bottom: 10px;
}

.buy-btn {
    background: #46B1E1;
    color: white;
    text-align: center;
    padding: 10px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
}

.buy-btn:hover {
    background: #3497c9;
}

.buy-btn:visited {
    background: #46B1E1;
    color: white;
    text-decoration: none;
}


/* Contact Form */
.formContentContainer {
    margin-top: 0%;
    width: 97%;
}

.formInput {
    display: block;
    margin: 0px 0px 15px 20px;
    padding: 4px;
    width: 97%;
    height: 5%;
    box-sizing: border-box;
    border: none;
    outline: none;
    border-bottom: 1px solid #aaa;
    font-size: 16px;
}

.submitButton {
    background: #46B1E1;
    color: white;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    font-size: 20px;
}




/* Backdrop */
.popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal */
.popup-modal {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: min(520px, 92vw);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Title */
.popup-modal h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
}

/* Subtitle */
.popup-modal p {
    margin: 0 0 14px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Input */
.popup-modal input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 12px;
}

/* Error / success messages */
.popup-error {
    color: #b00020;
    font-size: 14px;
    margin-bottom: 10px;
}

.popup-success {
    color: #137333;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Footer */
.popup-footer {
    display: flex;
    gap: 10px;
}

/* Primary button (your style) */
.submitButton {
    background: #46B1E1;
    color: white;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 20px;
}

/* Secondary button */
.cancelButton {
    background: #eee;
    color: #333;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}

.submitButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.popup-modal *,
.popup-modal *::before,
.popup-modal *::after {
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero .logo {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .product-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .formContainer {
        padding: 10px;
        border-radius: 0;
    }
    .hero .logo {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .product-card img {
        height: 160px;
    }
}

/* Utility colors */
.c-1-color { background: #555555;}
.c-2-color { background: #aaaaaa; }
.c-3-color { background: #eeeeee; }


/* Product Detail Gallery */
.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.gallery-main img {
    width: auto;
    max-width: 100%;
    max-height: 400px;   /* ✅ limit height */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    object-fit: contain; /* ✅ keeps aspect ratio */
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-thumbs img {
    width: 100px;           /* keep thumbnail box width */
    height: 70px;           /* fixed height */
    object-fit: contain;    /* show full height, crop width only if needed */
    object-position: center;/* keep image centered horizontally */
    background: #fff;       /* optional: fills any side gaps with white */
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.gallery-thumbs img:hover {
    border: 2px solid #46B1E1;
}

/* Full-screen overlay */
#flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Toast box */
.flash-toast {
  background: #f4f4f5;             /* light neutral grey */
  color: #18181b;
  min-width: 320px;
  max-width: 520px;
  padding: 1.2rem 1.6rem;
  border-radius: 14px;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  animation: pop-in 0.25s ease-out, fade-out 0.3s ease-in 4.5s forwards;
}


/* Animations */
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}
