:root {
    --orange: #ff6f00;
    --black: #121212;
    --white: #ffffff;
    --gray: #f4f4f4;
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--orange);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
  }

  header.is-sticky {
    height: 50px; /* New height when sticky */


  }

  .nav-left, .nav-right {
    display: flex;
    align-items: center;
    
  }

  .nav-middle {
    width: 60%;
    text-align: center;
    font-size: 24px;
 
    font-weight: bold;
  }

  .nav-middle a:hover{
    color: inherit;           /* Keep the same color in all states */
  text-decoration: none;    /* No underline */
  cursor: default;  

  }

  .nav-icon {
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
  }

  .cart-icon::after {
    
    background: var(--orange);
    color: var(--white);
    font-size: 12px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
  }
  .cart-count {
    background: var(--orange);
    color: var(--white);
    font-size: 12px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
  }
  



  @media (max-width: 768px) {
    .nav-middle {
      font-size: 18px;
    }
  }









  
.customer-details-form {

margin: 20px auto;
margin-top: 0px;
padding-top: 0px!important;
padding: 20px;
background: #f9f9f9;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.customer-details-form h3 {
text-align: center;
margin-bottom: 15px;
font-size: 1.2rem;
color: #333;
}

.customer-details-form label {
display: block;
font-weight: 500;
margin-top: 10px;
color: #555;
}

.customer-details-form input {
width: 100%;
padding: 8px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 14px;
}

.place-order-btn,
#placeordertoconfirmbtn {
width: 100%;
padding: 10px;
margin-top: 15px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}

.place-order-btn {
background-color: #007bff;
color: white;
}

#placeordertoconfirmbtn {
margin-top: 0pc;

float:inline-start;
background-color: #ccc;
color: #333;
width:auto;
}

.place-order-btn:hover {
background-color: #0056b3;
}

#placeordertoconfirmbtn:hover {
background-color: #bbb;
}

.quantitycontainer{
margin-top: 15px;
}
textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  resize: none; /* disable manual resize */
  overflow: hidden; /* hide scrollbar */
  min-height: 120px; /* enough initial height */
  line-height: 1.4;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #4CAF50; /* green on focus */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

textarea:valid {
  border-color: rgb(111, 113, 111);
}

textarea::placeholder {
  color: #999; /* light gray */
  opacity: 0.7;
  font-style: italic;
}

/* Responsive font & padding for small screens */
@media (max-width: 600px) {
  textarea {
    font-size: 0.95rem;
    padding: 10px;
    min-height: 100px;
  }
}

.cart-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color:white;
z-index: 1000000;
display: none; /* Initially hidden */
overflow: auto; /* Allow scrolling if content is too long */
}

.cart-content {
display: flex;
flex-direction: column;
height: 100%;
}

.cart-body {
flex-grow: 1;
padding: 20px;
overflow-y: auto; /* Scroll if cart items are too many */
}

.cart-details {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}


.cartheader {
display: flex;
justify-content: space-between; /* Space between left and right */
align-items: center; /* Center vertically */
}

.cartheader h2 {
margin: 10px; /* Remove default margin */
font-size: 30px; /* Adjust font size as needed */
}

.close-button {
margin-left: 152px;
margin-right: 10px;
background: none; /* No background */
border: none; /* No border */
color: black; /* Change to desired color */
font-size: 50px; /* Adjust size as needed */
cursor: pointer; /* Pointer cursor on hover */
padding: 0; /* Remove padding */
transition: color 0.3s; /* Smooth color transition */
}

.close-button:hover {
color: red; /* Change color on hover */
}



.cart-item {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
padding: 10px;
border: 1px solid #f0f0f0;
border-radius: 4px;
}

.cart-item img {
width: 40px;
height: 50px;
border-radius: 4px;
margin-right: 15px;
}

.cart-item div {
flex-grow: 1;
}

.cart-item p {
margin: 5px 0;
font-size: 14px;
}

.remove-button {
background: red;
color: white;
border: none;
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
}

#cart-total {
margin-left: 10px;
margin-bottom: 10px;
font-weight: bold;
font-size: 16px;
}

h3 {
margin-top: 20px;
}

.customer-details {
padding: 20px;
/* position: fixed;
bottom: 0;
left: 0;
right: 0; */
}

label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}

input[type="text"],
input[type="tel"] {
width: calc(100% - 10px);
padding: 6px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
/* 
button {
background-color: #ff9800; 
color: white;
border: none;
border-radius: 4px;
padding: 10px;
cursor: pointer;
font-size: 16px;
}

button:hover {
background-color: #e68900; 
} */

.full-width-button {
width: 100%;
padding: 8px; /* Adjust padding for better appearance */
background-color: #FF5722; /* Bright orange for visibility */
color: white; /* White text for contrast */
border: none; /* Remove default border */
border-radius: 5px; /* Round the corners */
cursor: pointer; /* Change cursor on hover */
font-size: 16px; /* Adjust font size */
font-weight: bold; /* Make the text bold for better visibility */
text-align: center; /* Center the text */
transition: background-color 0.3s; /* Smooth transition on hover */
}

.full-width-button:hover {
background-color: #E64A19; /* Darker orange on hover for emphasis */
}

#promo-code-input {
width: 200px; /* Adjust width as needed */
padding: 8px;
margin-bottom: 0px;
margin-right: 10px; /* Space between input and button */
border: 1px solid #ccc;
border-radius: 4px;
}

.promobutton {
padding: 7px 12px;
background-color: #28a745; /* Change to your preferred color */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;

}

.promobutton:hover {
background-color: #218838; /* Darker shade on hover */
}

.promocontainer {
display: flex;
align-items: center; /* Vertically align items */
margin-bottom: 20px;
margin-left: 10px; /* Space below the promo code section */
}




@media (min-width: 768px) {
.cart-content {
    width: 50%; /* Half width for larger screens */
    height: auto; /* Adjust height accordingly */
}
}


@media (min-width: 1024px) {  
    .EngravingOption {
        grid-template-columns: repeat(4, 1fr);
    }
}







  .custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4caf50; /* Green background */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000001;
  }

  .custom-alert.show {
    opacity: 1;
    pointer-events: auto;
  }

  .custom-alert.error {
    background-color: #f44336; /* Red background */
  }


/* Overlay for background */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 99;
}

/* Popup with aesthetic black background */
.category-popup {
  position: fixed;
  top: 0;
  left: -100%;
  width: 50%;
  max-width: 340px;
  height: 100%;
  background-color: #1e1e1e; /* Bright black */
  color: #fff;
  padding: 1rem;
  z-index: 10000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Header */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.close-icon {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ccc;
}

/* Category list from top */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.category-list li {
  margin: 0.7rem 0;
  border-bottom: 1px solid #333;
  padding-bottom: 0.4rem;
}

.category-list a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 1rem;
  transition: color 0.3s;
}

.category-list a:hover {
  color: #00ffd5; /* Aqua highlight on hover */
}

/* Contact Info */
.popup-contact {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
  color: #ccc;
}


@media (max-width: 600px) {
  .category-popup {
    width: 80%;
  }
}
