/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    text-align: center;
    margin: 0;
    padding: 0;
}


* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }  
        body { background: #f8f8f8; color: #333; } 
                /* Navbar */
        .navbar { 
            position: fixed; 
            top: 0; left: 0; width: 100%; 
            display: flex; justify-content: space-between; align-items: center; 
            padding: 15px 10%; background: white; 
            box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); 
            z-index: 1000;
        }
 
        .navbar {
    border-bottom: 1px solid #FF0000;  /* Change color as needed */
}
        .logo img { height: 40px; }

        .nav-links { 
            list-style: none; 
            display: flex; gap: 20px; 
        }
        .nav-links li { display: inline; }
        .nav-links a { 
            color: #333; text-decoration: none; font-size: 16px; font-weight: bold; 
        }
        .btn-login { 
            background: #FF0000; padding: 8px 15px; 
            border-radius: 5px; color: white; 
            text-decoration: none; font-weight: bold; 
        }

        /* Hamburger Menu */
        .menu-icon {
            display: none;
            font-size: 24px;
            cursor: pointer;
            color: red;
        }

        /* Mobile Navigation */
        @media (max-width: 768px) {
            .menu-icon { display: block; position: relative; z-index: 1100; }
            
            .nav-links { 
                position: absolute; top: 75px; right: 0; 
                background: white; width: 100%; 
                flex-direction: column; 
                text-align: center; padding: 0;
                box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
                
                /* Initially hidden */
                height: 0;
                overflow: hidden;
                transition: height 0.5s ease-in-out;
            }
            .nav-links.active { height: auto; padding: 10px 0; }
            
            .nav-links li { padding: 10px; border-bottom: 1px solid #ddd; }
        }
       
       #userEmail {
    max-width: 180px;  /* ✅ Increased width */
    overflow: hidden;  
    text-overflow: ellipsis; /* ✅ Shows "..." when text overflows */
    white-space: nowrap;  
    display: inline-block;
    font-size: 16px; /* ✅ Slightly bigger text */
    font-weight: 500;
    vertical-align: middle;
    padding: 0 10px; /* ✅ Add some spacing */
}


/* Product Gallery */
.product-gallery {
  width: 100%;
  text-align: left;
  margin-bottom: 40px;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Main Image - Fixed Size */
.main-image {
  width: 100%;
  max-width: 600px;
  height: 400px; /* Fixed height */
  object-fit: contain; /* Keep image aspect ratio inside fixed box */
  border-radius: 12px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto 20px;
  display: block;
}

/* Thumbnail Wrapper */
.thumbnail-wrapper {
  padding: 20px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-top: 30px;
  background-color: #fafafa;
  overflow-x: hidden;
}

.thumbnail-container {
  max-width: 100%;
  overflow-x: auto;
  padding: 0 12px;
  display: flex;
  justify-content: center;
}

.thumbnail-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-start;
  width: fit-content;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
}

.thumbnail-row::-webkit-scrollbar {
  display: none;
}

.thumbnail-row img {
  margin-top: 10px;
  margin-bottom: 10px ;
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail-row img:hover,
.thumbnail-row img.active {
  transform: scale(1.1);
  border-color: #d40000;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .thumbnail-row img {
    width: 90px !important;
    height: 90px !important;
  }
}
.main-image {
height: 280px;
transition: opacity 0.4s ease-in-out;

}

/* Product Container */
.product-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
background: white;
padding: 25px;
margin: 80px auto 30px;
border-radius: 10px;
max-width: 850px;
box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {

.product-container {
flex-direction: column;
align-items: center;
padding: 15px;

}

.product-container img {

margin-right: 0;
margin-bottom: 20px;
width: 100%;
max-width: 100%;
}

.product-info {

text-align: center;

max-width: 100%;

}

.product-info ul {
padding-left: 20px;
text-align: left;
}
}

.product-info h2 {
font-size: 24px;
color: #d40000;
margin-bottom: 10px;
text-align: left;
}

.product-info p {
font-size: 16px;
color: #555;
margin: 10px 0;
}

.price {
font-size: 22px;
font-weight: bold;
color: #d40000 !important;
background: #ffe6e6;
padding: 8px 15px;
border-radius: 5px;
display: inline-block;
margin-top: 10px;
}

.product-info {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

.product-info ul {
  list-style-position: inside;
  padding-left: 1em;
  margin: 1em 0;
}

.product-info li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 20px;
}

/* Upload Button */

input[type="file"] {

width: 100%;

padding: 8px;

margin-top: 10px;

border: 2px solid #d40000;

border-radius: 8px;

background: #fff5f5;

cursor: pointer;

}

input[type="file"]:hover {

background: #ffe0e0;

border-color: #b00000;

}

.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}

.fade-zoom {
  animation: fadeZoom 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes fadeZoom {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ✅ Preview Section */
/* ✅ Responsive Preview Container */
.preview-container {
    background: white;
    padding: 20px;
    margin: 30px auto;
    border-radius: 10px;
    max-width: 550px;
    text-align: center;
}

/* ✅ Adjust Preview Images for Mobile */
.preview-images {
    display: flex;
    flex-wrap: wrap; /* ✅ Wrap on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

/* ✅ Individual Image Containers */
.preview-images div {
    text-align: center;
    flex: 1 1 150px; /* ✅ Flexible width */
    min-width: 120px; /* ✅ Prevents too small images */
}

/* ✅ Adjust Image Size */
#previewFront, #previewBack {
    width: 100%;
    max-width: 180px;
    height: auto;
    border: 0px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

/* ✅ Mobile Optimization */
@media (max-width: 500px) {
    .preview-images {
        flex-direction: column; /* ✅ Stack images vertically */
        align-items: center;
    }

    #previewFront, #previewBack {
        max-width: 220px; /* ✅ Bigger images for mobile */
    }
}

/*Popup*/
button {

    padding: 10px 20px;

    margin: 10px;
    background-color: #c62828; /* deep red */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
  }

  button:hover {
    background-color: #b71c1c; /* darker red on hover */
  }

  .popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(198, 40, 40, 0.4);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    text-align: left;
  }

  .popup h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #c62828;
  }

  .popup input[type="file"],
  .popup input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .popup button {
    background-color: #d32f2f;
  }

  .popup button:hover {
    background-color: #b71c1c;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  #previewSection {
    margin-top: 30px;
    display: none;
  }

  #previewSection h3 {
    margin-bottom: 15px;
    color: #c62828;
  }

  .preview-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .preview-container img,
  #pdfPreview {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(198, 40, 40, 0.3);
  }

  #pdfPreview {
    border: 1px solid #ccc;
  }

/* ✅ Shipping Address Container */
/* ✅ Shipping Address Container */
.shipping-container {
    background: white;
    padding: 20px;
    margin: 30px auto;
    border-radius: 10px;
    max-width: 550px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.shipping-container h2 {
    font-size: 22px;
    color: #d40000;
    margin-bottom: 15px;
    text-align: center;
}

/* ✅ Shipping Address Form Grid */
.shipping-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;  /* 🛠 Fix: Added proper gap */
}

/* ✅ Full-Width Fields */
.shipping-container input:nth-child(5), /* Pincode */
.shipping-container input:nth-child(6) { /* Mobile */
    grid-column: span 2; /* 🛠 Fix: These fields will take full width */
}


.shipping-container input {
    width: 100%;
    padding: 4px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

.shipping-container input:focus {
    border-color: #d40000;
    outline: none;
    box-shadow: 0px 0px 5px rgba(212, 0, 0, 0.3);
}

/* ✅ Improved Shipping Address Form Responsiveness */
/* ✅ Mobile-Friendly Shipping Address Form */
.shipping-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ✅ Make Input Fields Bigger for Easy Typing */
.shipping-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease;
    box-sizing: border-box;
}

/* ✅ Focus Effect */
.shipping-container input:focus {
    border-color: #d40000;
    outline: none;
    box-shadow: 0px 0px 5px rgba(212, 0, 0, 0.3);
}

/* ✅ Adjust for Larger Screens */
@media (min-width: 600px) {
    .shipping-container form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .shipping-container input:nth-child(5), /* Pincode */
    .shipping-container input:nth-child(6) { /* Mobile */
        grid-column: span 2; /* Full Width */
    }
}

/* Order Button - Professional Look */
.sticky-order-btn {
  display: block;
  background: #d40000;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: auto;
  min-width: 160px;
  text-align: center;
  margin: 20px auto;
  /* Center in block elements */
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

.sticky-order-btn:hover {
  background: #b00000;
  transform: scale(1.05);
}

 /* Footer Styles */
    footer {
        position: relative;
       background: linear-gradient(135deg, #FFB3B3, #FFD1C1);


        color: #333;
        padding: 60px 10%;
        overflow: hidden;
    }

    /* Title & Description */
    .footer-intro {
        max-width: 800px;
        text-align: left;
    }

    .footer-intro h2 {
        font-size: 28px;
        color: #FF0000;
        margin-bottom: 10px;
    }

    .underline {
        width: 460px;
        height: 2px;
        background: #FF0000;
        margin-bottom: 15px;
    }

    .footer-intro p {
        font-size: 18px;
        color: #555;
    }

    /* Animated Background Icons */
    .footer-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.transparenttextures.com/patterns/circles-light.png'); /* Subtle Pattern */
        opacity: 0.1;
        animation: bgAnimation 8s infinite alternate;
    }

    @keyframes bgAnimation {
        0% { background-position: 0 0; }
        100% { background-position: 50px 50px; }
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
        position: relative;
        z-index: 1;
        margin-top: 30px;
    }

    .footer-section {
        flex: 1;
        min-width: 250px;
        text-align: left;
    }

    .footer-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
        text-transform: uppercase;
        font-weight: bold;
        color: #FF0000;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

    .footer-section ul li {
        margin: 5px 0;
    }

    .footer-section ul li a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
    }

    .footer-section ul li a:hover {
        color: #FF0000;
    }

    .footer-section p a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
    }

    .footer-section p a:hover {
        color: #FF0000;
    }

    /* Social Icons */
    .social-icons {
        display: flex;
        gap: 15px;
        margin-top: 15px;
    }

    .social-icons a {
        display: inline-block;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

    .social-icons a:hover {
        background: rgba(255, 0, 0, 0.3);
    }

    .social-icons img {
        width: 24px;
    }

    /* Bottom Footer */
    .footer-bottom {
        margin-top: 30px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 0, 0, 0.3);
    }

    .footer-bottom p {
        font-size: 14px;
        color: #333;
        text-align: center;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .footer-container {
            flex-direction: column;
            text-align: left;
        }

        .footer-section {
            text-align: left;
        }

        .social-icons {
            justify-content: left;
        }
    }

    @media (max-width: 600px) {
        .footer-intro h2 {
            font-size: 24px;
        }
        .footer-intro p {
            font-size: 16px;
        }
    }
    
    
   /* button spinner*/
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;       /* Light base */
  border-top: 2px solid #e60000;   /* Red highlight */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
