:root {
  --primary-color: #113f67;
  --secondary-color: #2a6497;
  --accent-color: #d4a373;
  --light-color: #ffffff;
  --dark-color: #333333;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* Hero Section */
.register-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 15px 0;
  position: relative;
  overflow: hidden;
  color: white;
}

.animated-heading {
  text-align: center;
}

.animated-heading h4 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.8s forwards 0.3s;
}

.link-home-page {
  opacity: 0;
  animation: fadeIn 1s forwards 0.8s;
}

.link-home-page a,
.link-home-page p {
  color: rgba(255, 255, 255, 0.8) !important;
  display: inline-block;
  margin: 0 5px;
}

.link-home-page a:hover {
  color: white;
  text-decoration: none;
}

/* Watch Particles Animation */
.watch-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatParticles linear infinite;
  bottom: -50px;
  /* Start below the container */
}


/* Individual particles (adjust sizes/delays) */
.particle:nth-child(1) {
  left: 10%;
  width: 12px;
  height: 12px;
  animation-duration: 12s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 25%;
  width: 18px;
  height: 18px;
  animation-duration: 15s;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  left: 40%;
  width: 14px;
  height: 14px;
  animation-duration: 18s;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  left: 55%;
  width: 20px;
  height: 20px;
  animation-duration: 14s;
  animation-delay: 0.5s;
}

.particle:nth-child(5) {
  left: 70%;
  width: 16px;
  height: 16px;
  animation-duration: 16s;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  left: 85%;
  width: 10px;
  height: 10px;
  animation-duration: 10s;
  animation-delay: 1.5s;
}

.particle:nth-child(7) {
  left: 15%;
  width: 22px;
  height: 22px;
  animation-duration: 20s;
  animation-delay: 2.5s;
}

.particle:nth-child(8) {
  left: 30%;
  width: 8px;
  height: 8px;
  animation-duration: 8s;
  animation-delay: 4s;
}

.particle:nth-child(9) {
  left: 60%;
  width: 24px;
  height: 24px;
  animation-duration: 22s;
  animation-delay: 0.2s;
}

.particle:nth-child(10) {
  left: 90%;
  width: 13px;
  height: 13px;
  animation-duration: 13s;
  animation-delay: 3.5s;
}

@keyframes floatParticles {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-150vh) rotate(360deg);
    /* Move above viewport */
  }
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Kumbh Sans", sans-serif;
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: auto;
}

.main-filter-boxes {
  display: flex;
}

.products-watch {
  width: calc(100% - 250px);
  padding: 20px;
}

.main-arrvial-box-heading {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.filters-boxes-first {
  width: 300px;
  padding: 15px;
  border: 1px solid #ddd;
}

.main-arrvial-box-heading h4 {
  font-size: 30px;
  font-weight: 500;
}

.filter-container {
  width: 250px;
}

h2 {
  margin-bottom: 20px;
}

.filter-section {
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  cursor: pointer;
}

.section-content {
  margin-top: 20px;
}

.slider-container {
  display: flex;
}

input#maxRange {
  margin-left: -10px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  /* Important */
  border-radius: 10px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #113f67;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: #113f67;
  border-radius: 50%;
  margin-top: -5px;
  /* aligns thumb with track */
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  background: #113f67;
  border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  background: #113f67;
  border-radius: 50%;
  cursor: pointer;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.filter-checkbox {
  margin-left: 5px;
  height: 15px;
  width: 15px;
  cursor: pointer;
}

.filter-label {
  margin-left: 8px;
  cursor: pointer;
}

.price-inputs input {
  width: 96px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #113f67;
}

.filter-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.layout-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.filter-selct select {
  border: none;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #113f67;
  border-radius: 8px;
}

.filter-toggle-btn {
  display: none;
  padding: 10px 15px;
  font-size: 16px;
  background: #2a6497;
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 15px;
  border-radius: 5px;
  position: absolute;
  top: 255px;
}

/* Close Button Inside Sidebar */
.close-filter-btn {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  position: absolute;
  top: 20px;
  left: 286px;
  z-index: 9999999;
  display: none;
}

.layout-button {
  padding: 10px 16px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
  font-weight: bold;
}

.layout-button.active {
  background-color: #113f67;
  color: #fff;
}

.product-grid {
  display: grid;
  gap: 20px;
}

.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.product-card {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 15px #ddd;
  text-align: center;
  width: 100%;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px #113f6738;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-image {
  width: 100%;
  transition: opacity 0.3s ease;
  display: block;
  border-radius: 6px;
}

.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .hover-img {
  opacity: 1;
}

.product-card:hover .default-img {
  opacity: 0;
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: red;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.product-info {
  margin-top: 10px;
  text-align: center;
}

.product-title {
  font-size: 14px;
  color: #222;
  margin: 5px 0;
}

.filter-products {
  text-decoration: none;
}

/* Infinite scrolling */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px 0;
}

.load-more-btn {
    position: relative;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 45, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 45, 74, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn .btn-text {
    transition: all 0.3s ease;
}

.load-more-btn.loading .btn-text {
    opacity: 0;
}

.load-more-btn .loading-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner Animation */
.spinner {
    animation: rotate 1.5s linear infinite;
    height: 25px;
    width: 25px;
}

.spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Pulse animation for error state */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.load-more-btn.error {
    animation: pulse 0.5s ease-in-out;
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
}

@media (max-width: 768px) {

  .columns-3,
  .columns-4,
  .columns-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .register-hero {
    padding: 20px 0 30px;
  }

  .animated-heading h4 {
    font-size: 2rem;
  }

  .filters-boxes-first {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80%;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }

  .filters-boxes-first.active {
    display: block;
  }

  .filter-toggle-btn {
    display: inline-block;
    position: absolute;
    top: 285px;
  }

  .main-filter-boxes {
    flex-direction: column;
  }

  .products-watch {
    width: 100%;
  }

  .close-filter-btn {
    display: block;
  }

  .layout-button {
    display: none;
  }

  .filter-selct select {
    margin-left: 165px;
    margin-top: 2px;
  }
}