/* General Layout */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fb;
    color: #111827;
  }
  
  main {
    padding: 40px;
  }
/* Flash messages container */
.flash-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 90%;
  width: auto;
}

/* Individual message */
.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideDown 0.4s ease-out;
  transition: all 0.3s ease;
}

.flash-message.alert-danger { background: #dc3545; }
.flash-message.alert-success { background: #28a745; }
.flash-message.alert-info    { background: #17a2b8; }

/* Close button */
.flash-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0 0.5rem;
  margin-left: 1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 1;
}

/* Animations */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.flash-message.removing {
  opacity: 0;
  transform: translateY(-10px);
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
  

/*Loader*/
.loader-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.6);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff; font-size:1.2rem; z-index:99999;
}
.loader-spinner{
  width:50px; height:50px; border:6px solid #fff;
  border-top-color:transparent; border-radius:50%;
  animation:spin 1s linear infinite; margin-bottom:1rem;
}
@keyframes spin{ to{transform:rotate(360deg)} }
  /* Navbar */

.navbar-wrapper {
  background: linear-gradient(to right, #f9fcff, #e9ebf7);
  border-bottom: 1px solid #ddd;
    font-family: 'Raleway', sans-serif;

}

.navbar-top,
.navbar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #f9fcff, #e9ebf7);
  border-bottom: 1px solid #eee;
  font-family: 'Raleway', sans-serif;
}

/* Left: Logo + Search */
.top-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-left a {
  text-decoration: none;
  color: #1645d2;
  font-weight: 500;
}

.logo-block img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}
/* Search box */
.search-box {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  margin-top: 20px;
  border: none;
  box-shadow: none;
}

/* Input itself – clean and minimal */
.search-input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  width: 140px;
  background: transparent;
  font-family: 'Raleway', sans-serif;
  color: black;
}


/* BRAND CENTER */
.top-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  color: #004080;
}

/* RIGHT SECTION */
.top-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}


/* LINKS */
.top-right a {
  text-decoration: none;
  color: #1645d2;
  font-weight: 500;
}

.top-right a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}


.navbar-bottom a {
  position: relative;
  color: #1645d2;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 4px;
}

.navbar-bottom a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: #004080;
  transition: transform 0.3s ease;
}

.navbar-bottom a:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.navbar-bottom a.active {
  color: #b76e79; /* golden */
  font-weight: 500;
}

.navbar-bottom a.active::after {
  background-color: #b76e79;
  transform: translateX(-50%) scaleX(1);
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  border: 1px solid #93C5FD; /* Border Blue */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 8px 0;
  border-radius: 6px;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #1E3A8A; /* Dark Blue Text */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #EFF6FF; /* Light Blue */
  color: #3B82F6; /* Medium Blue */
}

.dropdown:hover .dropdown-content {
  display: block;
}


  /* Hero Section */
  .hero {
    background-image: url("https://images.unsplash.com/photo-1573408301185-9146fe634ad0?auto=format&fit=crop&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000; /* fallback */
    color: white;
    padding: 100px 40px;
    text-align: center;
    position: relative;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 0;
  }
  
  .hero * {
    position: relative;
    z-index: 1;
  }
  
  .hero h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .hero p {
    font-size: 18px;
    max-width: 600px;
    margin: auto;
  }
  
  .hero .btn {
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
  }
  .greeting {
  text-align: center;
  color: #007bff;
  margin-bottom: 20px;
}
  
  /* Features */
  .features h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .features .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .feature {
    width: 200px;
    text-align: center;
  }
  
  .feature h3 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
  }
  
  .feature p {
    font-size: 14px;
    color: #6b7280;
  }
  .supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 0;
  }

  .left-section {
    position: absolute;
    left: 0;
  }

  .center-section {
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }

  .hamburger {
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
  }

  .menu-label {
    font-size: 16px;
    font-weight: 500;
  }
  .sidebar {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 10px;
    width: fit-content;
    transition: all 0.3s ease;
  }

  .sidebar.hidden {
    display: none;
  }
/* Diamond Page */

.diamond-grid,
.jewelry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
} 

/* Diamond Page - Modern Filters Revamp */

/* Tab Buttons for Natural/Lab Grown */
.type-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.type-toggle button {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  background: transparent;
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 10px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-toggle button.active {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  box-shadow: 0 4px 16px rgba(75, 108, 183, 0.4);
  transform: scale(1.02);
}

.type-toggle button:hover:not(.active) {
  background: rgba(75, 108, 183, 0.1);
  color: #4b6cb7;
  transform: translateY(-2px);
}
/* New styles for filter buttons */
.shape-btn.active,
.color-grade-btn.active,
.clarity-btn.active,
.certificate-btn.active,
.fluorescence-btn.active,
.make-btn.active,
.color-type-btn.active {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  box-shadow: 0 4px 16px rgba(75, 108, 183, 0.4);
  transform: scale(1.02);
}

.shape-btn:hover:not(.active),
.color-grade-btn:hover:not(.active),
.clarity-btn:hover:not(.active),
.certificate-btn:hover:not(.active),
.fluorescence-btn:hover:not(.active),
.make-btn:hover:not(.active),
.color-type-btn:hover:not(.active) {
  background: rgba(75, 108, 183, 0.1);
  color: #4b6cb7;
  transform: translateY(-2px);
}
/* Diamond Page - Modern Form Filters */

/* Main Filters Container */
.diamond-filters {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  display: block; /* Show by default, JavaScript will control visibility */
}

.diamond-filters.hidden {
  display: none !important; /* Use !important to override any conflicting rules */
}
/* Filter Container */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 60px;
  width: 100%; /* Ensure full width for button alignment */
}

/* Toggle Buttons for Natural/Lab Grown */
.type-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.type-toggle button {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  background: #f1f3f5;
  color: #2c3e50;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.type-toggle button.active {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}

.type-toggle button:hover:not(.active) {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* Filter Row */
.filter-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* Align items at the top for better spacing */
  gap: 1rem;
  margin-bottom: 1.5rem; /* Increased for better separation */
  flex-wrap: wrap;
}

.filter-form {
  display: block; /* Show by default */
}

.filter-form.hidden {
  display: none !important; /* Use !important to ensure it hides properly */
}
/* Labels */
.filter-row.compact-group label,
.filter-row label {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem; /* Increased spacing below label as requested */
 
  min-width: 80px;
  flex-shrink: 0; /* Prevent label from shrinking */
}
/* Refine Color Buttons Container */
.color-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  /* Remove flex-wrap: wrap to keep in a single line */
  max-width: 100%; /* Ensure it fits within the parent */
  overflow-x: auto; /* Add horizontal scroll if needed on small screens */
  white-space: nowrap; /* Prevent text wrapping */
}

/* Ensure consistent button sizing for color options */
.color-buttons .color-grade-btn {
  min-width: 40px; /* Fixed minimum width for uniformity */
  text-align: center;
  padding: 0.4rem 0.6rem; /* Adjusted padding for smaller buttons */
}
/* Shape Buttons */
.shape-filter .shape-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.shape-btn {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  transition: all 0.3s ease;
}

.shape-btn img {
  width: 30px;
  height: 30px;
  margin-bottom: 0.3rem;
}

.shape-btn span {
  font-size: 0.8rem;
  color: #2d3748;
}

.shape-btn.active {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(75, 108, 183, 0.4);
  transform: scale(1.02);
}
.shape-btn:hover:not(.active) {
  background: #f1f3f5;
  transform: translateY(-2px);
}

.shape-btn.active span {
  color: #fff;
}


/* Range Filters (Carat, Price) */
.range-filter .range-inputs {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.range-filter input[type="number"] {
  width: 100px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1a202c;
  background: #fff;
  transition: all 0.3s ease;
}

.range-filter input[type="number"]:focus {
  outline: none;
  border-color: #4b6cb7;
  box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.1);
}

.slider-container {
  position: relative;
  width: 200px;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  position: relative;
  z-index: 1;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #4b6cb7;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  background: #182848;
  transform: scale(1.2);
}

/* Input Fields */
.filter-row input[type="text"] {
  width: 150px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1a202c;
  background: #fff;
  transition: all 0.3s ease;
}

.filter-row input[type="text"]:focus {
  outline: none;
  border-color: #4b6cb7;
  box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.1);
}

/* Button Groups (Quality, Color, Clarity, etc.) */
.filter-row button {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  color: #4b6cb7;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.filter-row button:hover:not(.active) {
  background: #f1f3f5;
  color: #182848;
  transform: translateY(-2px);
}

.filter-row button.active {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}

/* Color Buttons Container */
.color-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

/* Search and Clear Buttons */
.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  flex-direction: row !important;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%; /* Ensure it spans the container */
  padding-right: 10px;
}

.search-btn,
.clear-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
  width: auto;
}

.search-btn:hover,
.clear-btn:hover {
  background: rgba(75, 108, 183, 0.1);
  color: #4b6cb7;
  transform: translateY(-2px);
}

/* Hidden Form */
.filter-form.hidden {
  display: none;
}
.filter-container {
  position: relative;
  padding-bottom: 60px;
  min-height: 500px;
}

/* Group Smaller Fields Side by Side */
.filter-row.compact-group {
  flex-wrap: nowrap;
  gap : 4rem;
}

.filter-row.compact-group .range-inputs,
.filter-row.compact-group .color-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
   margin-left: 1rem;
  align-items: center;
}

.filter-row.compact-group input[type="number"],
.filter-row.compact-group button {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Ensure consistent spacing for options */
.filter-row .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem; /* Uniform spacing above options */
}
/* Diamond Grid */
.diamond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.diamond-grid h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.wishlist-icon {
  font-size: 1.2rem; /* Smaller heart size */
  color: #888;
  cursor: pointer;
  margin-left: 20px; /* Increased space between button and heart */
  margin-top: 18px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.wishlist-icon:hover {
  color: #ff4d4d;
  transform: scale(1.1);
}

.wishlist-icon.active {
  color: #e60000;
  animation: heartbeat 0.6s ease-in-out;
  transform: scale(1.15);
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.15); }
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 20px; /* Additional spacing between elements */
}


/* Ensure loading is hidden by default and positioned correctly */
#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none; /* Start hidden */
}

#loading.hidden {
  display: none; /* Redundant but explicit */
}

/* Sort container styling */
.sort-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* Increased gap for more space between sort group and filter button */
  margin: 1rem 0;
  position: relative;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 0.3rem; /* Keeps label and select close */
}

#sortBy {
  padding: 0.5rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  min-width: 150px; /* Increased width to make the select button longer */
}

#filterBtn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
  margin-bottom: 1rem;
}

#filterBtn:hover {
  background: rgba(75, 108, 183, 0.1);
  color: #4b6cb7;
  transform: translateY(-2px);
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.card h3 {
  font-size: 1.2rem;
  color: #2d3748;
  margin: 0.5rem 0;
}

.card p {
  font-size: 0.9rem;
  color: #4b5e77;
  margin: 0.3rem 0;
}

.card .view-details-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.card .view-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .diamond-filters {
    padding: 1.5rem;
  }

  .filter-container {
    grid-template-columns: 1fr;
  }

  .type-toggle {
    max-width: 300px;
    display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  }

  .type-toggle button {
    padding: 0.6rem 1rem;
    border: none;
  border-radius: 4px;
  background: #e0e0e0;
  cursor: pointer;
    font-size: 0.9rem;
  }

  .shape-btn {
    width: 50px;
  }

  .shape-btn img {
    width: 25px;
    height: 25px;
  }

  .shape-btn span {
    font-size: 0.7rem;
  }

  .button-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-btn, .clear-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

.card a {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 108, 183, 0.4);
}


/* View details page*/
.details-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* Header */
.details-container h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
    letter-spacing: 1px;
}

/* Flex layout */
.item-details {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Left side: Image + Video */
.item-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.item-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
}

/* Video Section (both <video> and iframe) */
.video-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.video-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.video-section video,
.video-section iframe {
    width: 480px;
    height: 390px;               /* Looks great on all screens */
    border-radius: 12px;
    border: none;
    background: #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* Item Info */
.item-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #333;
}

.item-image {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}


/* Add structure to item-info to make two columns */
.item-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  margin-top: 20px;
}

.item-info > div {
  flex: 1;
  min-width: 300px;
}

.item-info strong {
  font-weight: 600;
}


.item-info p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}
/* Actions: wishlist */
.actions {
    margin-bottom: 25px;
}


.button-group {
    margin-top: 40px;
    text-align: center;
}

.button-group .btn-primary {
    margin: 10px;
}


/*Jewelry page*/
.jewelry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.jewelry-grid h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

  /* Cart & Summary */
  .cart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
  }
  
  .card img {
    width: 100%;
    height: 260px; /* or any fixed square size */
    object-fit: cover;
    aspect-ratio: 1 / 1; /* forces square aspect */
    border-radius: 8px;
    margin-bottom: 12px;
  }
  
  
  .cart-item,
  .cart-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
  }
  
  .cart-summary {
    max-width: 350px;
  }
  
  .btn {
    padding: 12px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    text-align: center;
  }
  
/* Franchise Page Styles */
.franchise-page, .about-page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
/* Section Header */
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #3b82f6; /* gold accent */
  margin-top: 5px;
  border-radius: 2px;
}

/* About Section */
.about-section {
  margin-bottom: 50px;
  padding: 30px;
  border-radius: 10px;
}
.about-section.bg-light {
  background-color: #f9f9f9;
}

/* Values List */
.values-list {
  list-style: none;
  padding-left: 0;
}
.values-list li {
  margin-bottom: 15px;
  font-size: 1rem;
}
.values-list li strong {
  color: #1a1a1a;
}

/* Contact Section */
.contact-section ul.contact-details {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.contact-section ul.contact-details li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.contact-section a {
  color: #3b82f6;
  text-decoration: none;
}
.contact-section a:hover {
  text-decoration: underline;
}

/* ------------------------
   Franchise Page Styles
------------------------ */
.franchise-page {
  font-family: 'Arial', sans-serif;
  color: #333;
  padding: 50px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Header Section */
.page-header {
  text-align: center;
  margin-bottom: 50px;
}
.page-title {
  font-size: 2.8rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.page-subtitle {
  font-size: 1.2rem;
  color: #555;
}

/* Form Styling */
.franchise-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.franchise-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
}
/* Limit input and textarea width */
.franchise-form input,
.franchise-form textarea {
  width: 100%;
  max-width: 400px; /* limit the width */
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s;
  display: block;
  margin: 0 auto; /* center fields */
}

/* Center the form group contents */
.franchise-form .form-group {
  margin-bottom: 20px;
  text-align: center; /* center the labels and fields */
}


.franchise-form input:focus,
.franchise-form textarea:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Button Styling */
.submit-btn {
  background-color: #3b82f6;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.submit-btn:hover {
  background-color: #0c449e;
  transform: translateY(-2px);
}

/* About Page Styles */
.about-section {
  margin-bottom: 3rem;
  text-align: center;
}

.about-section h2 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1rem;
  color: #4b5e77;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.contact-section a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}

.contact-section a:hover {
  text-decoration: underline;
}

  
  /* Featured Collections */
.collections {
    padding: 60px 40px;
    background-color: #f1f5f9;
  }
  
  .collections h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .collections-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .collection-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  
  .collection-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .collection-card h3 {
    margin: 16px 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
  }
  
  .collection-card p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
  }
  
  /*Education Page*/

.diamond-hero {
  background: #f8f2ef url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  
  text-align: center;
  padding: 3rem 1rem;
  color: black;
}

.diamond-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.diamond-hero p {
  max-width: 900px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #444;
}

.diamond-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.diamond-box {
  position: relative;
  width: 360px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
  text-align: left;
   
}

.diamond-box.natural {
  background: url('/static/images/natural-diamonds.jpg') center/cover no-repeat;
  background-color: #000;
}

.diamond-box.lab {
  background: url('/static/images/labgrown-diamonds.webp') center/cover no-repeat;
  background-color: #000;

}

.diamond-info {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 10px;
  width: 100%;
}

.diamond-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.diamond-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color:white;
}

.read-btn {
  background:linear-gradient(135deg,#fefdfe,#fbfbfb);
  color: #004080;
  font-weight: 400;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
}

.read-btn:hover {
  background: #3b82f6;
  color: white;
}


.edu-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  padding: 2rem 1rem;
}

.edu-nav-cards .nav-card {
  background: #f3f3f3;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.edu-nav-cards .nav-card:hover {
  background-color: #2563eb;
  color: #fff;
}

  .education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .info-card {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .info-card .icon {
    margin-right: 8px;
  }
  
  .info-card ul {
    padding-left: 16px;
    margin-top: 8px;
    color: #444;
  }
  
  .shape-columns {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
  }
  
  .shape-columns ul {
    padding-left: 16px;
  }
  
  .clarity-chart {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .clarity-chart h3 {
    margin-bottom: 16px;
  }
  
  .chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
  
  .chart-box {
    background: #f9fafb;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
  }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.tile {
  background: #f0f8ff;
  border: 2px solid #d6eaf8;
  border-radius: 12px;
  text-align: center;
  padding: 1.4rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 97, 160, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  color: #004080;
}

.tile:hover {
  background-color: #d6ebff;
  transform: translateY(-4px);
  border-color: #0074cc;
}
.tile.active {
  background-color: #004080; /* or match your brand color */
  color: white;
  border-radius: 8px;
  transition: 0.3s ease;
}
.tile.active i {
  margin-bottom: 0.75rem;
  color: white;
}


.tile i {
  margin-bottom: 0.75rem;
  color: #0056b3;
}

.tile span {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}


.edu-section {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #cde2f9;
  border-radius: 10px;
  background-color: #fafdff;
}

.edu-section h3 {
  color: #00509e;
  margin-bottom: 0.75rem;
}
/* Education – 5Cs detailed styling */
/* Education – 5Cs detailed styling */
.cs-detailed {
  padding: 2rem;
  background: #fafdff;
  color: #004080;
  border-radius: 12px;
}

.cs-hero {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cs-hero-left h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #003060;
}

.cs-hero-left ul {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: #333;
}

.cs-hero-right h2 {
  font-size: 1.6rem;
  color: #2563eb;
  font-weight: 600;
  text-align: left;
}

.cs-anatomy {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* ensures it wraps nicely on smaller screens */
}

.anatomy-img {
  flex: 1;
  max-width: 40%;
  min-width: 280px;
  text-align: center;
}

.anatomy-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #d0e7ff;
}

.anatomy-text {
  flex: 1;
  max-width: 50%;
  min-width: 280px;
}

.anatomy-text h3 {
  font-size: 1.5rem;
  margin-bottom: .75rem;
  color: #004080;
}

.anatomy-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.cs-details h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #00509e;
}

.cs-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cs-block img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
  border: 2px solid #cde2f9;
}

.cs-block-content {
  flex: 1;
}

.cs-block h3 {
  font-size: 1.4rem;
  color: #003366;
}

.cs-block p {
  margin: .5rem 0;
  line-height: 1.6;
  color: #333;
}

.grading-scale, .clarity-scale, .cut-scale {
  text-align: center;
  margin: 2rem 0;
}

.grading-scale img,
.clarity-scale img,
.cut-scale img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 10px;
  border: 1px solid #dcefff;
}

.cs-cta {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.cs-cta .cta-item {
  flex: 1;
  padding: 1.5rem;
  background: #e6f0ff;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #b3d1ff;
}

.cs-cta .cta-item h4 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
  color: #002f6c;
}

/* Responsive fixes */
@media (max-width: 800px) {
  .cs-hero,
  .cs-anatomy,
  .cs-block,
  .cs-cta {
    flex-direction: column;
    text-align: center;
  }

  .cs-hero-left ul,
  .anatomy-text,
  .cs-block-content {
    text-align: left;
  }
}


  
  /*Cart Page*/
  .cart-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
  }
  
  .cart-items {
    flex: 1;
    min-width: 60%;
  }
  
  .cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
  }
  
  .item-details {
    flex: 1;
    margin-left: 16px;
  }
  
  .item-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
  }
  
  .price {
    font-weight: bold;
    color: #2563eb;
    font-size: 1.1rem;
  }
  
  .cart-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    max-height: fit-content;
  }
  
  .cart-summary h4 {
    margin-bottom: 12px;
  }
  
  .cart-summary p {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
  }
  
  .cart-summary .total {
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .cart-summary .btn {
    display: block;
    margin-top: 16px;
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
  }
  
  .page {
    padding: 2rem;
    font-family: 'Helvetica Neue', sans-serif;
  }

/*Profile Page*/
  
  .profile-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .profile-content {
    display: flex;
    gap: 2rem;
  }
  
  .sidebar {
    flex: 1;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .sidebar .nav-links li {
    margin-bottom: 0.5rem;
  }
  
  .profile-form {
    flex: 3;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
  }
  
  .form-group {
    display: grid;
    gap: 1rem;
  }
  
  input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
  }

  
/* Flex container for Login + Signup */
.auth-flex-container {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

/* Login Box */
.login-box {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-box h2 {
  margin-bottom: 1rem;
}

.login-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.login-tabs .tab {
  padding: 0.5rem 1rem;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  border-radius: 8px;
}

.login-tabs .tab.active {
  background: #2563eb;
  color: white;
}
.auth-flex-container {
  display: flex;
  flex-direction: row; /* Side by side */
  gap: 2px; /* Optional spacing */
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 20px;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="text"] {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

.login-box button.btn-primary {
  margin-top: 1rem;
}

/* Vertical Divider */
.vertical-divider {
  width: 2px;
  background: #e5e7eb;
}

/* Signup Box */
.signup-box {
  flex: 1;
  background: #f9fafb;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.signup-box h2 {
  margin-bottom: 0.5rem;
}

.signup-box p {
  margin-bottom: 1rem;
}

.signup-box a.btn-primary {
  margin: 0.25rem 0;
  padding: 0.75rem 1rem;
  display: inline-block;
  text-decoration: none;
  background-color: #2563eb;
  color: white;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-flex-container {
    flex-direction: column;
  }
  .vertical-divider {
    width: 100%;
    height: 2px;
  }
}
.profile-container {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.sidebar {
  width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
}

.user-card {
  text-align: center;
}

.user-card .avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.nav-links li {
  margin-bottom: 8px;
}

.profile-content {
  flex-grow: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 24px;
}

.profile-content h2, .profile-content h3 {
  margin-bottom: 16px;
}

.profile-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.sidebar {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li a {
  display: block;
  padding: 10px 0;
  color: #2563eb;
  text-decoration: none;
}

.profile-form {
  flex: 2;
  min-width: 400px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-form input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

/*Sign-up section*/
.signup-section {
  max-width: 900px;
  margin: auto;
  padding: 3rem clamp(1rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.signup-section:hover {
  transform: scale(1.005);
}

.signup-section h2{
    text-align: center;
    margin-bottom: 50px; /* Adjust the value as you want */
    font-family: 'Poppins', sans-serif;

}

.user-type-selection {
  display: flex;
  justify-content: space-between;
  gap: 24px; 
  margin-bottom: 50px;
}

.user-type-box {

  padding: 1.5rem 1rem;
  flex: 1;
  
  cursor: pointer;
  text-align: center;
  background: linear-gradient(to bottom right, #ffffff, #f9f9ff);
  border: 1.5px solid #ddd;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

  font-weight: 500;
  color: #333;
}

.user-type-box.selected {
  border-color: #2563eb;
  background: linear-gradient(to bottom right,  #e0ecff, #f0f6ff);
  color: #2563eb;
}


.user-type-box:hover {
 transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.icon-circle {
  width: 70px;                  /* increased circle size */
  height: 70px;
  margin: 0 auto;
  margin-top: -45px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  color: white;
  font-size: 1 rem;           /* smaller icon */
}



.user-type-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
}

input,
label {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}
/* Enhanced form fields */
.form-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.form-row {
  display: flex;
  gap: 50px; /* Space between fields */
  flex-wrap: wrap;
  
}

.form-group {
  flex: 1;
  min-width: 200px; /* Minimum width for input/select */
}

.country-state-city select {
  min-width: 200px; /* Make initial dropdowns wider */
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 2rem;
  background: #fff;
  transition: all 0.25s ease-in-out;
  width: 100%; /* Make select fields full width */
  padding: 10px;
}
.form-group input:focus, .form-group select:focus {
  border-color: #2563eb;
  outline: none;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="file"],
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(100, 116, 139, 0.3); /* subtle modern border */
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  background-color: #fff;
}

.mobile-input {
  display: flex;
  gap: 8px;
}

.mobile-input select {
  flex: 0 0 100px;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}


.login-link {
  text-align: center;
  margin-top: 1rem;
}
footer {
  background-color: #f0f0f0; /* Light grey background */
  padding: 20px;
  text-align: center;
}

footer a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
}

/* Align checkbox and label inline */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 15px;

}

.checkbox-container input[type="checkbox"] {
  width: auto; /* natural size */
  margin: 0;
}

.checkbox-container label {
  margin: 0;
  line-height: 1.2; /* tighter alignment */
}
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 55%;
  right: 5px;
  transform: translateY(-40%);
  cursor: pointer;
  color: #888;
  font-size: 1rem;
}
.my-icon {
  color: rgb(248, 248, 248);
}

.user-type-modern {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: nowrap; /* prevents wrapping, keeps them inline */
  margin-bottom: 40px;
  overflow-x: auto; /* optional: scroll if screen too small */
  padding: 1rem 0;
}


.modern-card {
  position: relative;
  width: 260px;
  padding: 3rem 1.5rem 2rem;
  border-radius: 0 0 60% 60% / 0 0 20% 20%;
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: white;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modern-card.selected {
  border: 2px solid #fff;
  box-shadow: 0 20px 40px rgba(72, 0, 172, 0.4);
}

.icon-container {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #4a00e0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.modern-card h3 {
  margin-top: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modern-card p {
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Optional: Add different gradients per card */
.modern-card:nth-child(1) {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.modern-card:nth-child(2) {
  background: linear-gradient(135deg,  #4facfe, #00f2fe);
}
.modern-card:nth-child(3) {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
@media (max-width: 850px) {
  .user-type-modern {
    flex-wrap: wrap;
    justify-content: center;
  }

  .modern-card {
    margin-bottom: 20px;
  }
}

/*Supplier hub page*/

.supplier-hub {
  max-width: 1000px;
  margin: 30px auto;
  padding: 30px;
  font-family: 'Poppins', 'Montserrat', system-ui, -apple-system, sans-serif;
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.supplier-hub h1 {
  text-align: center;
  color: #1e40af; /* Deep blue */
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.supplier-hub h2 {
  text-align: center;
  color: black; /* Lighter blue */
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 25px;
}

.supplier-summary {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  padding: 20px;
  max-width: 800px;
  flex-wrap: wrap;
}

.supplier-box {
  flex: 1 1 250px;
  background: #f1f5f9; /* Pastel blue to light blue */
  color: black;
  font-weight: 600;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.supplier-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.supplier-box h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.supplier-box span {
  font-size: 2rem;
  font-weight: 600;
  color: black;
}


.upload-section {
  background: rgba(219, 234, 254, 0.8); /* Light blue with transparency */
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.upload-section:hover {
  transform: translateY(-5px);
}

.upload-section h3 {
  color: #1e40af;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.upload-section form {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.upload-section input[type="file"] {
  width: 100%;
  max-width: 450px;
  padding: 12px;
  border: 2px solid #93c5fd; /* Pastel blue border */
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  color: #1e40af;
  transition: all 0.3s ease;
}

.upload-section input[type="file"]:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.upload-section .btn {
  background-color: #60a5fa; /* Light blue button */
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-section .btn:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.upload-section .loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.upload-section .spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #bfdbfe; /* Pastel blue */
  border-top: 4px solid #3b82f6; /* Lighter blue */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); /* Subtle glow */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

.success {
  color: #10b981;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

.inventory-list {
  margin-top: 30px;
}

.inventory-list h3 {
  color: #1e40af;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

#inventory-table {
  width: 100%;
  max-width: 100%; /* Prevent overflow */
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

#inventory-table thead tr {
  background: linear-gradient(90deg, #93c5fd, #bae6fd); /* Pastel blue to light blue */
  color: #1e40af;
  font-weight: 600;
}

#inventory-table th,
#inventory-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #bfdbfe; /* Pastel blue border */
  font-size: 0.95rem;
  white-space: nowrap; /* Prevent text wrapping */
}

#inventory-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

#inventory-table tbody tr {
  transition: all 0.3s ease;
}

#inventory-table tbody tr:hover {
  background-color: #eff6ff; /* Very light blue hover */
  transform: scale(1.01);
}

#inventory-table td {
  color: #374151; /* Soft gray */
}

#inventory-table td a {
  color: #3b82f6; /* Light blue for links */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#inventory-table td a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .supplier-hub {
    padding: 15px;
    margin: 15px;
  }

  .inventory-list {
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
  }

  #inventory-table th,
  #inventory-table td {
    padding: 10px;
    font-size: 0.85rem;
  }

  .upload-section {
    padding: 20px;
  }

  .upload-section input[type="file"] {
    max-width: 100%;
  }
}


/*Calculator page*/
.calculator {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.filter-section {
  background-color: #e6f3ff;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.filter-group {
  display: flex;
  flex-direction: column;
}
.filter-group label {
  margin-bottom: 5px;
  font-weight: bold;
}
.filter-group input,
.filter-group select {
  padding: 8px;
  border: 1px solid #007bff;
  border-radius: 5px;
}
.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.price-result {
  text-align: center;
  margin: 20px 0;
}
.price-result h2 {
  color: #007bff;
}


/* Upload History page */

.upload-history {
  max-width: 1200px;
  margin: 30px auto;
  padding: 15px;
}


.upload-history h2 {
  color: #1e40af;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 0 15px;
  text-align: center;
}

.upload-history p#no-jewellery,
.upload-history p#no-diamonds {
  text-align: center;
  color: #374151;
  font-style: italic;
  font-size: 0.95rem;
}

.history-table {
  width: 100%;
  max-width: 100%; /* Prevent overflow */
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Matches inventory shadow */
  margin: 20px auto;
}

.history-table thead tr {
  background: linear-gradient(90deg, #93c5fd, #bae6fd); /* Pastel blue to light blue, matches inventory */
  color: #1e40af; /* Matches inventory header text */
  font-weight: 600;
}

.history-table th,
.history-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #bfdbfe; /* Pastel blue border, matches inventory */
  font-size: 0.95rem;
  white-space: nowrap; /* Prevent text wrapping, matches inventory */
}

.history-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700; /* Matches inventory header */
}

.history-table tbody tr {
  transition: all 0.3s ease; /* Matches inventory transition */
}

.history-table tbody tr:hover {
  background-color: #eff6ff; /* Very light blue hover, matches inventory */
  transform: scale(1.01); /* Matches inventory hover effect */
}

.history-table td {
  color: #374151; /* Soft gray, matches inventory */
}

.history-table td a {
  color: #3b82f6; /* Light blue for links, matches inventory */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease; /* Matches inventory link transition */
}

.history-table td a:hover {
  color: #1e40af;
  text-decoration: underline; /* Matches inventory link hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .upload-history {
    padding: 15px;
    margin: 15px;
  }

  .history-table {
    overflow-x: auto; /* Allow horizontal scrolling, matches inventory */
  }

  .history-table th,
  .history-table td {
    padding: 10px;
    font-size: 0.85rem; /* Matches inventory responsive font */
  }
}