/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body {
  background: #f7f9fc;
  color: #1f1f1f;
}

/* 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: 0 2px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  border-bottom: 2px solid #1f3b93;
}

.logo img {
  height: 50px;
}

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

.nav-links li {
  display: inline;
}

.nav-links a {
  color: #1f1f1f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1f3b93;
}

.btn-login {
  background: #1f3b93;
  padding: 8px 15px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #162c6d;
}

/* Hamburger Menu */
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #1f3b93;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    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: 0 4px 10px rgba(0, 0, 0, 0.08);
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
  }
  
  .nav-links.active {
    height: auto;
    padding: 12px 0;
  }
  
  .nav-links li {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
  }
}

#userEmail {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  padding: 0 10px;
}

/* Product Gallery */
.product-gallery {
  max-width: 1200px;
  margin: 100px auto 20px;
  padding: 0 20px;
  text-align: center;
}

.main-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
}

/* Thumbnail Section */
.thumbnail-wrapper {
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  margin-top: 30px;
  background: #f9f9f9;
  overflow-x: hidden;
}

.thumbnail-container {
  padding: 0 12px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.thumbnail-row {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  width: fit-content;
  scrollbar-width: none;
}

.thumbnail-row::-webkit-scrollbar {
  display: none;
}

.thumbnail-row img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail-row img:hover,
.thumbnail-row img.active {
  transform: scale(1.1);
  border-color: #1f3b93;
}

/* Product Container */
.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: white;
  padding: 30px;
  margin: 60px auto 40px;
  border-radius: 10px;
  max-width: 850px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  gap: 30px;
}

/* Product Info */
.product-info {
  max-width: 650px;
  padding: 0 30px;
  text-align: left;
}

.product-info h2 {
  font-size: 26px;
  color: #1f3b93;
  margin-bottom: 15px;
}

.product-info p {
  font-size: 16px;
  color: #222;
  margin: 10px 0;
}

.product-info ul {
  list-style-position: outside;
  padding-left: 20px;
  margin: 1em 0;
}

.product-info li {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.6;
}

/* Price Tag */
.price {
  font-size: 24px;
  font-weight: bold;
  border-left: 4px solid #1f3b93;
  border-bottom: 4px solid #1f3b93;
  color: #1f3b93 !important;
  background: linear-gradient(90deg, #e6ebf7, #c9d6f3);
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 15px;
  box-shadow: inset 0 0 5px rgba(31, 59, 147, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  
  .main-image {
    height: 280px;
  }
  
  .product-info {
    padding: 0 15px;
    text-align: left;
  }
  
  .product-info ul {
    padding-left: 20px;
  }
  
  .thumbnail-row img {
    width: 60px;
    height: 60px;
  }
}
/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* Upload Buttons */
.upload-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  align-items: center;
}

.upload-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background-color: #1f3b93;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 240px;
}

.upload-buttons button:hover {
  background-color: #162c6d;
}

.upload-buttons input[type="file"] {
  width: 180px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .upload-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
  .upload-buttons button {
    width: auto;
  }
}

/* Upload Inputs */
input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 2px dashed #1f3b93;
  border-radius: 10px;
  background: #e9edf8;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  color: #1f3b93;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  background: #dfe6f9;
  border-color: #4b6cb7;
}

/* Preview Container */
.preview-container {
  background: linear-gradient(135deg, #ffffff, #f5f8fc);
  padding: 32px 28px;
  margin: 40px auto;
  border-radius: 18px;
  max-width: 720px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid #dfe2e9;
}

.preview-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.preview-images div {
  text-align: center;
  flex: 1 1 160px;
  min-width: 140px;
}

#previewFront, #previewBack {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

#previewFront:hover, #previewBack:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* PDF Preview */
.pdf-container {
  background-color: #edf2fa;
  border: 1px solid #cddbf4;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#pdfPreview {
  width: 260px;
  height: 180px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Password Note */
.pdf-password-note {
  font-weight: 600;
  font-size: 15px;
  color: #1f3b93;
  background: #e3eaf6;
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid #c7d5ee;
}

/* Shipping Form */
.shipping-container {
  background: #ffffff;
  padding: 28px 24px;
  margin: 0 auto;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.5s ease-in;
}

.shipping-container h2 {
  font-size: 28px;
  color: #1f3b93;
  margin-bottom: 24px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  letter-spacing: 0.5px;
}

.shipping-container h2::after {
  content: '';
  width: 80px;
  height: 3px;
  display: block;
  margin: 10px auto 0;
  background: linear-gradient(to right, #4b6cb7, #1f3b93);
  border-radius: 2px;
}

/* Inputs */
.shipping-container input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  background: #fdfdfd;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: all 0.3s;
}

.shipping-container input:focus {
  border-color: #1f3b93;
  box-shadow: 0 0 8px rgba(31, 59, 147, 0.2);
}

/* Form Layout */
.shipping-container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 768px) {
  .shipping-container {
    max-width: 700px;
    margin: 40px auto;
  }

  .shipping-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .shipping-container input:nth-child(5),
  .shipping-container input:nth-child(6),
  .shipping-container button {
    grid-column: span 2;
  }
}

/* Submit Button */
.shipping-container button,
.sticky-order-btn {
  background: linear-gradient(to right, #4b6cb7, #1f3b93);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.shipping-container button:hover,
.sticky-order-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(to right, #3757a6, #162c6d);
}

/* Fade Animation */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Popup Modal */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(31, 59, 147, 0.2);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  text-align: left;
}

.popup h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #1f3b93;
}

.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: #1f3b93;
}

.popup button:hover {
  background-color: #162c6d;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 100vw;
  height: 100vh;
  z-index: 999;
}

#previewSection {
  margin-top: 30px;
  display: none;
}

/* Preview Title */
.preview-title {
  text-align: center;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f3b93;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  position: relative;
}

.preview-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #4b6cb7;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Button Spinner */
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid #1f3b93;
  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); }
}

/* Scroll Button Fade */
#scrollToAddress {
  transition: opacity 0.5s ease;
}

#scrollToAddress.hidden {
  opacity: 0;
  pointer-events: none;
}

#scrollToAddress {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(to right, #4b6cb7, #1f3b93);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#scrollToAddress:hover {
  background: linear-gradient(to right, #3757a6, #162c6d);
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#scrollToAddress i {
  color: white;
}

#submitPDF,
#submitImages {
  background: linear-gradient(to right, #4b6cb7, #1f3b93);
  color: #fff;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#submitpdf:hover,
#submitimages:hover {
  background: linear-gradient(to right, #3757a6, #162c6d);
  transform: translateY(-2px) scale(1.03);
}

  /* Original IDs and classes maintained */
  .shipping-hide {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: white;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s ease-out;
    overflow-y: auto;
    padding: 20px 0;
  }
  
  .shipping-hide.active {
    transform: translateY(0);
  }
  
  #showBtn {
  background: linear-gradient(to right, #0080ff, #0033a0);
  color: white;
  width: 100%;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

#showBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 114, 255, 0.4);
}