body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
	padding-top: 60px;
    background-color: #333;
    color: #fff;
	
}

@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }
}


html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.product-page {
 background-color: #123c46;
}

html {
  scroll-behavior: smooth;
}


header {
    background-color: #333;
    padding: 10px;
}

footer {
   background-color: #123c46;
    padding: 10px;
    text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* fill most of the viewport height */
  background-color: #123c46;
  padding: 80px 20px;
  text-align: center;
  color: white;
}


.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero,
.hero h1,
.hero p,
.hero .cta-btn {
  color: #fff; /* white for good contrast */
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-btn {
  background-color: #2ea2a5;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #1e7b7d;
}


.hero-logo {
  max-width: 170px;
  height: auto;
  margin-bottom: 20px;
}

/* Initial state for animated elements */
.hero-logo,
.hero h1,
.hero p,
.cta-btn {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

/* Keyframe for fade-in + slide-up */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations with staggered delays */
.hero-logo {
  animation-name: fadeSlideUp;
  animation-duration: 0.8s;
  animation-delay: 0.3s;
}

.hero h1 {
  animation-name: fadeSlideUp;
  animation-duration: 0.8s;
  animation-delay: 0.7s;
}

.hero p {
  animation-name: fadeSlideUp;
  animation-duration: 0.8s;
  animation-delay: 1.1s;
}

.cta-btn {
  animation-name: fadeSlideUp;
  animation-duration: 0.8s;
  animation-delay: 1.5s;
   transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  background-color: #1e7b7d;
  transform: scale(1.05);
}



.aboutmain {
	width: 100%;
    padding: 78px 0px;
    background: #333;  
    text-align: center;
    color: white;
    position: relative;
}
.aboutmain::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    z-index: 1;
}

#about h2 {
     font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

#about p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    z-index: 2;
    max-width: 800px;
    margin: 20px auto;
    animation: fadeIn 2s ease-in-out;
}
 
.about-content {
    z-index: 2;
    animation: fadeInUp 2s ease-in-out;
    margin-top: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


#contact h2 {
	text-align: center;
	padding: 78px 0px;
}

.container {
    max-width: 600px;
    margin: 10px auto;
    background-color: #fff;
	width:100%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


form {
    display: grid;
    gap: 10px;
}

label {
    font-weight: bold;
	Color: black;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: white;
    color: black;
	border-style: groove;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
	font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #007d74;
	color: white;	
    border-radius: 5px;
}



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

.product-item {
    background-color: #222;
    padding: 20px;
    text-align: center;
}

.product-item img {
    max-width: 100%;
    height: 200px;
	object-fit: contain;
	display: block;

}

.grid img {
	    width: 100% !important;
  height: 200px !important;
  object-fit: contain !important;
  display: block !important;
}

.add-to-cart {
    background-color: #007d74;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.admin-login, .admin-products {
    text-align: center;
    padding: 50px;
}

button {
    background-color: #007d74;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
}

button:focus {
  outline: 2px solid #007d74;
  outline-offset: 2px;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px; /* changed from 10px 0px to add horizontal padding */
    background-color: #333;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.logo-text {
  margin-left: 10px;
  font-size: 1.5rem;
  color: #007d74;
  text-shadow: 
        1px 1px 0 white, 
        -1px -1px 0 white, 
        -1px 1px 0 white, 
        1px -1px 0 white;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-10px);
  white-space: nowrap;
}

.nav.scrolled .logo-text {
  opacity: 1;
  transform: translateX(0);
}

.logo-container img {
    max-height: 50px;
}

@media (max-width: 768px) {
  .logo-text {
    display: inline; /* or block/flex depending on layout */
    font-size: 0.9rem; /* smaller text for mobile */
  }
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0 20px 0 0; /* added right margin */
}


.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: background-color 0.3s;
}

.nav-links li a:hover {
    background-color: #007d74;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }
}



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

.product-card {
  background: white;
  border: 1px solid #ccc;
  padding: 1em;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: black;
  background-color: #222;
  color: #fff;
  display: flex;
   flex-direction: column;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 125, 116, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.product-card h3 {
	  color: white;
  font-weight: bold;
  font-size: 1rem;
  background-color: #222;
  padding: 10px 15px;
  border-radius: 8px;
  text-shadow: 0 0 5px rgba(0, 125, 116, 0.8);
  animation: glow-teal 1.5s ease-in-out infinite alternate;
}

@keyframes glow-teal {
  from {
    text-shadow: 0 0 5px rgba(0, 125, 116, 0.6);
  }
  to {
    text-shadow: 0 0 15px rgba(0, 125, 116, 1);
  }
}


.product-card strong{
	font-weight: bold;
}


.product-card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.product-card button {
  background: #007777;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: auto;
}
.product-card button:hover {
  background-color: #45a049;
}

/* Slide-out state */
.cart {
  position: fixed;
  top: 70px;
  right: 0;
  width: 450px;
  background: #fff;
  padding: 1em;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  border-left: 2px solid #007777;
  color: black;
  /* Start hidden off-screen */
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  max-width: 100vw;
  box-sizing: border-box;
}

.cart h3 {
	color: white;
	background: #007d74;
	text-align: Center;
	font-weight:bold;
	font-size: 24px;
}

/* Slide-in when open */
.cart.open {
  transform: translateX(0);
}

/* Cart toggle button styling */
.cart-toggle {
  position: fixed;
  top: 90px;
  right: 20px;
  background: #007777;
  color: #fff;
  border: 4px solid white;
  padding: 0.5em 0.7em;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 1001;
  max-width: 100vw;
  box-sizing: border-box;
}

.cart-item {
  border-bottom: 1px dotted #ccc;
  padding: 10px 0;
}

.cart-item:last-child {
  border-bottom: none; /* Remove line after last item */
}

.cart-item-details {
  margin-bottom: 5px;
}

#cart-items {
  max-height: 300px;  /* Adjust this to fit your layout */
  overflow-y: auto;
  padding-right: 10px; /* Optional: space for scrollbar */
}

#cart-items::-webkit-scrollbar {
  width: 6px;
}

#cart-items::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

.checkout-btn {
  background: #007777;
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
  border: 2px solid white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.removeBtn {
  display: inline-block;
  text-align: left;
  background-color: transparent;
  border: none;
  color: #d9534f; /* Bootstrap danger red */
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.removeBtn:hover {
  text-decoration: underline;
}

/* Popup overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Popup box */
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  background-color: #222;
  color: #fff;
}


.popup-content input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

main h1 {
	color: white;
	margin-top: 80px;
	text-align: center;
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	align-items: stretch;
}

.contact-section {
  padding: 30px;
  background-color: #2d2d2d;
  color: white;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 0px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-left {
  flex: 1;
  min-width: 300px;
  display:flex;
  flex-direction: column;
  justify-content:center;
}

.contact-info p {
  margin: 10px 0;
  font-size: 16px;
}

.contact-info a {
  color: #1abc9c;
  text-decoration: none;
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  margin-right: 15px;
  font-size: 1.5em;
  color: #1abc9c;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #16a085;
}

.map-container {
  margin-top: 20px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
    flex-direction: column;
    justify-content: center;
  height: auto;
  margin:auto;
  background-color: white;
  color: black;
  padding: 20px;
  font-size: 1rem;

}

.contact-form input,
.contact-form textarea {
 font-size:1rem;
  padding: 10px;
  margin-bottom: 15px;
 
}

.contact-form button {
  width: 100%;
  padding: 10px 20px;
  background-color: #1abc9c;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #16a085;
}

@media (max-width: 768px) {
  /* Ensure the contact section content is centered */
  .contact-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%; /* Take the full width */
  }

  /* Adjust contact information and form width */
  .contact-left, .contact-form {
    width: 100%;
    max-width: 600px; /* You can adjust this as needed */
    margin: 10px 0;
    text-align: center; /* Ensure the text is centered */
  }

  .contact-info h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .contact-info p,
  .contact-info a {
    font-size: 20px;
    text-align: center;
    display: block;
  }

  .contact-info .social-icons {
    display: flex;
  justify-content: center;   /* centers items horizontally */
  align-items: center;       /* centers items vertically (if needed) */
  flex-wrap: nowrap;         /* keep them in one line */
  gap: 15px;                 /* space between icons */
  margin-top: 15px;
  }

  .contact-info .social-icons a {
    font-size: 24px;
  }

  .map iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
  }

  /* Style for contact form inputs and buttons */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px;
    margin-bottom: 15px;
  }

  .contact-form button {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
  }
  
   .contact-form {
        padding: 15px;
        font-size: 0.9rem;
    }
}



.services-section {
  padding: 60px 20px;
 background-color: #123c46;
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 40px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
}

.service-card {
  background: #2c2c2c;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 250px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 255, 204, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 255, 204, 0.3);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  color: #00cec9;
  font-size: 1.5rem;
  margin: 15px;
}

.service-card p {
  font-size: 1rem;
  padding: 0 15px 20px;
  color: #ccc;
}

@media (max-width: 768px) {
    #services h3 {
        font-size: 1.2rem;
    }

    #services p {
        font-size: 0.95rem;
    }

    .service h3 {
        font-size: 0.95rem;
    }

    .service p {
        font-size: 0.85rem;
    }
}


/* Prevent cart/sidebar overflow */
.cart, .cart-toggle, .popup-content, .contact-section, .contact-form {
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* General styling for the search bar */
#search-bar {
  padding: 10px;
  font-size: 16px;
  width: 300px; /* Set a fixed width or use max-width */
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: width 0.3s ease; /* Smooth transition when resizing */
}

/* Align search bar to the right for larger screens */
#search-container {
  position: relative;
  display: flex;
  justify-content: flex-end; /* Align content to the right */
  padding: 10px;
}

/* Media Query for smaller screens */
@media screen and (max-width: 768px) {
  #search-container {
    justify-content: center; /* Center the search bar on smaller screens */
  }

  #search-bar {
    width: 100%; /* Make search bar full width on smaller screens */
  }
}

#top-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px;
  flex-wrap: wrap;
}

#category-filter,
#search-bar {
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Mobile layout: stack vertically */
@media (max-width: 768px) {
  #top-controls {
    flex-direction: column;
    align-items: stretch;
  }

  #category-filter,
  #search-bar {
    width: 100%;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.pagination button {
  padding: 8px 12px;
    border: 2px solid white;
  background-color: #00796b;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button:hover {
  background-color: #004d40;
}

.pagination button.active {
  background-color: #00bfa5;
  font-weight: bold;
}

#product-grid.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#product-grid.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}



.popup-overlay2 {
   display: none;
   opacity:0;
  position: fixed;
  z-index: 999;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
   transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: flex-start; /* Aligns content to top */
  padding-top: 80px; /* Pushes modal below navbar */

}

.popup-overlay2.active {
  display: flex;
   opacity: 1;
  pointer-events: all;
}

.product-popup {
    background: #fff;
  color: black;
  padding: 20px;
  width: 100%;
  max-width: 500px; /* Limits the width on larger screens */
  border-radius: 10px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-overlay2.active .product-popup {
  transform: translateY(0);
  opacity: 1;
}

.product-popup img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .product-popup {
    width: 90%;
    max-width: none;
    padding: 15px;
    font-size: 0.95rem;
  }

  .product-popup img {
    max-height: 200px;
  }

  .quantity-input {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .product-popup {
    padding: 10px;
  }

  .close-btn {
    top: 5px;
    right: 10px;
    font-size: 20px;
  }

  #modal-quantity {
    width: 40px;
  }
}

@media (min-width: 1024px) and (max-width: 1600px) {
  .product-popup {
    max-width: 400px;
    font-size: 0.95rem;
    padding: 18px;
  }
}





.contact-container2 {
  display: flex;
  justify-content: center;
  width: 50%;              /* smaller width */
  padding: 20px 15px;      /* less padding */
  background-color: #1c1c1c;
  height: auto;
}

.modal-content {
  background-color: #2c2c2c;
  padding: 10px 15px;      /* reduce padding */
  border-radius: 12px;
  max-width: 400px;        /* smaller max width */
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: white;
  overflow-y: visible;
}

.modal-content h2 {
  margin: 5px 0;
  font-size: 20px;          /* slightly smaller */
  line-height: 1.1;
  color: #fff;
}

.form-group {
  margin-bottom: 10px;      /* reduce vertical spacing */
}

.form-group label {
  display: block;
  margin-bottom: 3px;
  color: #ccc;
  font-size: 13px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: white;
  font-size: 13px;
  height: 28px;              /* fix input height */
  box-sizing: border-box;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none; /* remove default outline */
  border-color: #009688; /* teal border color */
  box-shadow: 0 0 5px 2px rgba(0, 150, 136, 0.6); /* subtle teal glow */
}


.form-group textarea {
  height: 60px;              /* smaller textarea */
}

.save-button {
  background-color: #009688;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  min-height: 28px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.save-button:hover {
  background-color: #00796b;
}


/* Existing styles for .contact-container2 and .modal-content remain */

@media (max-width: 600px) {
  .contact-container2 {
    width: 90%;  /* almost full width on small screens */
    padding: 20px 10px; /* less padding on mobile */
  }

  .modal-content {
    max-width: 100%;
    padding: 15px 15px; /* smaller padding */
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
    padding: 8px 10px;
  }

  .save-button {
    font-size: 14px;
    padding: 10px 16px;
  }
}

.quantity-container {
  display: flex;
  align-items: flex-end; /* aligns button vertically with input */
  gap: 12px;
  margin-top: 8px;
}

.quantity-label-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quantity-label {
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.quantity-input {
  width: 50px;
  padding: 6px 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #004d40;
  background-color: #e0f2f1;
  border: 1.5px solid #007d74;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 125, 116, 0.2);
  transition: all 0.3s ease;
  outline: none;
}

.quantity-input:hover,
.quantity-input:focus {
  border-color: #004d40;
  box-shadow: 0 0 8px #004d40aa;
}


/* Base: side-by-side layout */
.quantity-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* Stack label above input */
.quantity-label-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Mobile: stack all vertically and stretch full width */
@media (max-width: 480px) {
  .quantity-container {
    flex-direction: column;
    align-items: stretch; /* stretch children to full width */
  }

  .quantity-label-input {
    flex-direction: column;
  }

  .quantity-input,
  .add-to-cart-btn {
    width: 100%; /* full width on mobile */
    box-sizing: border-box;
  }

  .add-to-cart-btn {
    margin-top: 8px;
  }
}

.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.custom-alert-box {
  background: white;
  color: black;
  border: 2px solid #009688; /* teal accent */
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
  max-width: 90%;
}

.custom-alert-box button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #009688;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-alert-box button:hover {
  background: #00796b;
}

/* ------------------------------------------------------------- */
/* Product Image Gallery */
/* ------------------------------------------------------------- */

.modal-image-gallery {
    text-align: center; /* Centers the main image within this container */
    margin-bottom: 25px; /* Space below the gallery */
    background-color: #f8f8f8; /* Light background for the image area */
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #eee; /* Subtle border around the gallery area */
}

#modal-product-main-image {
    max-width: 100%; /* Ensures the main image fits within its parent container */
    height: auto; /* Maintains the image's aspect ratio */
    max-height: 350px; /* Limits the maximum height to prevent overly large images */
    object-fit: contain; /* Scales the image to fit its content box without cropping */
    display: block; /* Removes any extra space below the image */
    margin: 0 auto 15px auto; /* Centers the image horizontally and adds space below */
    border: 1px solid #ddd; /* A subtle border for the main image */
    border-radius: 4px;
}

.thumbnail-strip {
    display: flex; /* Uses Flexbox to arrange thumbnails horizontally */
    justify-content: center; /* Centers the group of thumbnails */
    flex-wrap: wrap; /* Allows thumbnails to wrap to the next line if there are too many */
    gap: 10px; /* Provides space between individual thumbnails */
    margin-top: 15px; /* Space above the thumbnail strip */
}

.modal-thumbnail {
    width: 70px !important; /* Fixed width for each thumbnail */
    height: 70px !important; /* Fixed height for each thumbnail */
    object-fit: cover !important; /* Scales the image to fill the thumbnail box, cropping if necessary */
    cursor: pointer !important; /* Indicates the thumbnail is clickable */
    border: 2px solid transparent; /* Default transparent border */
    border-radius: 5px;
    transition: border-color 0.2s ease, transform 0.2s ease; /* Smooth transition for hover/active effects */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.modal-thumbnail:hover {
    border-color: #007bff; /* Changes border color to blue on hover */
    transform: translateY(-2px); /* Lifts the thumbnail slightly on hover */
}

.modal-thumbnail.active {
    border-color: #007bff; /* Blue border for the currently active (selected) thumbnail */
    box-shadow: 0 0 0 2px #007bff, 0 1px 5px rgba(0,0,0,0.2); /* Stronger highlight for active state */
}

/* ------------------------------------------------------------- */
/* Responsive Adjustments (for smaller screens) */
/* ------------------------------------------------------------- */

@media (max-width: 768px) {
    #modal-product-main-image {
        max-height: 250px; /* Reduces max height of the main image on tablets */
    }

    .modal-thumbnail {
        width: 60px; /* Slightly smaller thumbnails on tablets */
        height: 60px;
    }
}

@media (max-width: 480px) {
    #modal-product-main-image {
        max-height: 200px; /* Further reduces max height on mobile phones */
    }

    .modal-thumbnail {
        width: 50px; /* Even smaller thumbnails on mobile phones */
        height: 50px;
    }

    .thumbnail-strip {
        gap: 5px; /* Reduces space between thumbnails on very small screens */
    }
}