/*!
 * Start Bootstrap - Clean Blog v5.0.9 (https://startbootstrap.com/themes/clean-blog)
 * Copyright 2013-2020 Start Bootstrap
 * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-clean-blog/blob/master/LICENSE)
 1017
 */

body {
  font-size: 20px;
  color: #000000;
  font-family: var(--font-family-base);
  background-color: var(--color-light-cloud);
}

p {
  line-height: 1.5;
  margin: 30px 0px 0px;
}

.about {
  margin: 0px 0px 10px 0px;
  font-size: 14px;
}

.about a {
  text-decoration: none;
  color: #1c5499;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  font-family: var(--font-family-base);
}

a {
  color: #000000;
  transition: all 0.2s;
}

a:focus, a:hover {
  color: var(--color-primary);
}

.row.forgot_password,
.row.not_yet_registered {
  margin-left: 0px;
  margin-top: 10px;
  margin-bottom: 10px;
  /*color: #000000;
  transition: all 0.2s;*/
}

blockquote {
  font-style: italic;
  color: #555555;
}

.caption {
  font-size: 14px;
  font-style: italic;
  display: block;
  padding: 10px;
  text-align: center;
}

::-moz-selection,
::selection {
  color: #fff;
  background: var(--color-primary);
  text-shadow: none;
}

img::-moz-selection,
img::selection {
  color: #fff;
  background: transparent;
}

#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-family: var(--font-family-base);
  z-index: 1300;
}

#mainNav .navbar-toggler {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  display: block;
}

.form-control,
.form-select {
  background-color: #fff;
  border: 1px solid #e4c9d8;
  border-radius: 50px 0 0 50px;
  box-shadow: none;
  color: #555555;
  height: 40px;
  font-size: 16px;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  outline: 0;
}

.form-select {
  flex-shrink: 0; /* Prevent select from growing */
  max-width: 100px;
  min-width: 85px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-select {
    min-width: 85px;
  }
}

/* Responsive adjustments */
@media (min-width: 578px) {
  .overlay-content {
    width: 90%;
  }
}

/* Responsive adjustments */
@media (min-width: 678px) {
  .overlay-content {
    width: 80%;
  }
}

@media (max-width: 578px) {
  .form-select {
    min-width: 85px;
    font-size: 14px; /* Reduce font size for better fit */
  }

  .form-control.search_field {
    font-size: 14px; /* Reduce font size for better fit */
  }

  .overlay-content {
    width: 90%;
  }
}

#searchTextmain {
    transition: placeholder 0.5s ease-in-out;
}

.container {
  max-width: 95vw;
}

div.dropdown {
    padding-left: 10px;
    padding-right: 5px;
    position: relative;
}

.dropdown-menu {
  width: 70px;
  border: 2px solid #fff;
  padding: 0rem 0;
  position: absolute;
  margin-left: 10px;
  z-index: 1400;
}

.dropdown-item {
  width: 100%;
  height: 40px;
  padding: 12px;
  font-size: 16px;
  z-index: 1200;
  color: white;
  font-weight: 600;
}

.dropdown-menu>li>a {
  padding: 12px;
}

.masthead .container {
  margin-top: 80px;
}

@media (max-width: 767px) {
  .masthead .container {
    margin-top: 110px;
  }
}

.masthead .container h3 {
  font-size: 20px;
}

@media only screen and (min-width: 992px) {
  #mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1300; /* Ensure it stays on top of other elements */
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background-color 0.2s;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
  }
  #mainNav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 600; /* Ensure it stays on top of other elements */
    transition: background-color 0.3s ease;
  }
  #mainNav.is-visible {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 600; /* Ensure it stays on top of other elements */
  }
  div.dropdown {
    padding-left: 10px;
    justify-content: flex-end;
  }

  .dropdown-menu {
    width: 70px;
    border: 2px solid #fff;
    padding: 0rem 0;
    margin-left: 10px;
    z-index: 2000;
  }
  .dropdown-menu>li>a {
    padding: 12px;
  }
  .dropdown-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 40px;
    padding: 12px;
    font-size: 16px;
    z-index: 2001;
  }
}

div.landing_search {
  background: no-repeat center center;
  background-color: var(--color-beige);
  background-attachment: scroll;
  height: 450px;
  width: 100%;
}

.page-heading p {
    margin-top: 90px;
}

@media only screen and (min-width: 768px) {
  div.landing_search .page-heading,
  div.landing_search .item-heading {
    padding: 180px 0 40px;
    color: white;
    text-align: center;
  }
  div.landing_search .site-heading {
    padding: 180px 0 40px;
    color: var(--color-primary);
    text-align: center;
  }
  div.landing_search .page-heading h1 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
  }
  div.landing_search .site-heading h1 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--color-primary);
  }
  div.landing_search .item-heading h1 {
    font-size: 36px;
    color: #fff;
  }
  div.landing_search .item-heading .subheading {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 30px;
    font-family: var(--font-family-base);
    line-height: 1.1;
    display: block;
  }
  div.landing_search .item-heading .meta a {
    color: #fff;
  }
  .item-preview > a > .item-title {
    font-size: 36px;
  }
}

@media only screen and (max-width: 768px) {
  div.landing_search .page-heading,
  div.landing_search .item-heading {
    padding: 160px 0 40px;
    color: white;
    text-align: center;
  }
  div.landing_search .site-heading {
    padding: 180px 0 40px;
    color: var(--color-primary);
    text-align: center;
  }
  div.landing_search .page-heading h1 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 50px;
    color: #fff;
  }
  div.landing_search .site-heading h1 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 50px;
    color: var(--color-primary);
  }
  div.landing_search .item-heading h1 {
    font-size: 36px;
    color: #fff;
  }
  div.landing_search .item-heading .subheading {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 30px;
    font-family: var(--font-family-base);
    line-height: 1.1;
    display: block;
  }
  div.landing_search .item-heading .meta a {
    color: #fff;
  }
  #clear-all-filters {
    margin-left: 0px;
  }
  .filter_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .inline-filters {
    display: inline-block;
  }
}

div.landing_search .page-heading .subheading,
div.landing_search .site-heading .subheading {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
  display: block;
  margin: 10px 0 0;
  font-family: var(--font-family-base);
}

div.landing_search .item-heading .meta {
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-family-base);
  line-height: 1.1;
  display: block;
}

div.landing_search .item-heading .meta a {
  color: #fff;
}

.subheading {
  font-size: 14px;
}

.carousel-control-prev,
.carousel-control-next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%; /* Position halfway along the height */
    transform: translateY(-50%); /* Offset by 50% of its own height */
    background: none !important;
    border: none !important;
    border-radius: 100%;
    height: 40px;
    width: 40px;
    font-size: 18px;
    padding: 5px;
    z-index: 2;
}

[id^="carouselExampleControls"]:hover .carousel-control-prev,
[id^="carouselExampleControls"]:hover .carousel-control-next {
    display: block;
}

[id^="carouselExampleControls"]:hover .fa-circle-chevron-left,
[id^="carouselExampleControls"]:hover .fa-circle-chevron-right {
    transform: scale(1.5);
}

[id^="carouselExampleControls"] .carousel-control-prev:hover,
[id^="carouselExampleControls"] .carousel-control-next:hover {
  /*background: #fff;*/
  /*fill: %23fff;*/
  color: #000;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='10' fill='%23fff'/></svg>") !important;
}

.item-preview > a {
  color: #000000;
}

.item-preview > a:focus, .item-preview > a:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.item-preview > a > .item-title {
  font-size: 30px;
  margin-top: 30px;
  margin-bottom: 0px;
}

.item-preview > a > .item-subtitle {
  font-weight: 300;
  margin: 0 0 10px;
}

.item-preview > .item-meta {
  font-size: 18px;
  font-style: italic;
  margin-top: 0;
  color: #555555;
}

.item-preview > .item-meta > a {
  text-decoration: none;
  color: #000000;
}

.item-preview > .item-meta > a:focus, .item-preview > .item-meta > a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.input-group {
  width: 100%;
}

.input-group .form-select {
  min-width: 85px;
}

.floating-label-form-group {
  font-size: 14px;
  position: relative;
  margin-bottom: 5px;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #e4c9d8;
}

.form-control:focus {
  border: none;
  border-color: #fff;
  outline: 0;
}

.form-group.floating-label-form-group.controls.sign_up_button,
.form-group.floating-label-form-group.controls.log_in_button,
.form-group.floating-label-form-group.controls.reset_button {
    border-bottom: none !important;
    padding-top: 40px !important;
    padding-bottom: 20px !important;
}

label {
    display: block;
/*    margin-bottom: 5px;*/
}

.floating-label-form-group input,
.floating-label-form-group textarea {
  font-size: 1.2em;
  position: relative;
  z-index: 1;
  padding: 0;
  resize: none;
  border: 1px solid #fff;
  border-radius: 3px;
  background: none;
  box-shadow: none !important;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
}

.floating-label-form-group input::-webkit-input-placeholder,
.floating-label-form-group textarea::-webkit-input-placeholder {
  color: #555555;
  font-family: var(--font-family-base);
  border: none;
}

.floating-label-form-group label {
  font-size: 0.85em;
  line-height: 1.764705882em;
  position: relative;
  z-index: 0;
  top: 2em;
  display: block;
  margin: 0;
  margin-bottom: 0px;
  transition: top 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  border: none;
}

.floating-label-form-group .help-block {
  margin: 15px 0;
}

.floating-label-form-group-with-value label {
  top: 0;
  opacity: 1;
}

.floating-label-form-group-with-focus label {
  color: var(--color-primary);
}

form .form-group:first-child .floating-label-form-group {
  border-top: 1px solid #e4c9d8;
}

.control-label.search_field {
  display: none;
}

.btn.search_button {
  font-size: 14px;
  font-weight: 800;
  height: 40px !important;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 20px;
  letter-spacing: 1px;
  color: #fff;
  background-color: #000 !important;
  border-color: #000 !important;
  font-family: var(--font-family-base);
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
}

.btn.search_button i {
    font-size: 1.2rem;
}

.btn.login_button,
.btn.signup_button,
.btn.reset_button {
  font-size: 14px;
  font-weight: 800;
  height: 40px;
  width: 100%;
  letter-spacing: 1px;
  border-radius: 4px;
  color: #fff;
  background-color: #000;
  border-color: #000;
  font-family: var(--font-family-base);
}

/*.btn:hover, .btn:focus, .btn:active {
  color: #000 !important;
  background-color: #e4c9d8 !important;
  border-color: #e4c9d8 !important;
}*/

#signupButton:disabled,
#loginButton:disabled,
#resetButton:disabled {
  background-color: #cccccc;  /* Light gray background */
  border-color: #cccccc;
  color: #666666;             /* Darker gray text */
  cursor: not-allowed;        /* Changes cursor to indicate button can't be clicked */
  opacity: 0.7;               /* Makes the button slightly transparent */
}

/* Disable browser's default password toggle icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.user-admin-link {
    color: var(--color-primary);
    font-size: 14px;
}
nav.search_results_nav {
    display: flex;
}

.container .search form .form-group {
    display: inline-block;
    margin-right: 10px;
    justify-content: center;
    position: relative;
}

.container.search.results_page form.form-control {
    height: 25px
}

.container.search.results_page form.btn.btn-default {
    height: 25px
}

.container.search.results_page {
    display: flex;
    justify-content: center;
    /*position: fixed;*/
    /*position: relative;*/
    margin: 20px 0px 10px;
}

.container.search form input[type="text"],
.container.sign_up form input[type="text"],
.container.sign_up form input[type="text"] {
  height: 40px;
}

.container.sign_up,
.container.log_in,
.container.reset_password {
    width: 400px;
    margin: 100px auto;
    border: 1px solid #e4c9d8;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0px 3px 6px #b57ba6; /* Shadow on left and right */
    background-color: white;
}

@media (max-width: 540px) {
    .container.sign_up,
    .container.log_in,
    .container.reset_password {
        width: 350px;
    }
}

@media (max-width: 767px) {
    .container.sign_up,
    .container.log_in,
    .container.reset_password {
        margin: 120px auto;
    }
}

.container .user_home {
    margin: 100px auto;
}

.container.contact_us {
    width: 630px;
    margin: 100px auto;
    border: 1px solid #e4c9d8;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0px 3px 6px #b57ba6; /* Shadow on left and right */
}

h1.sign_up,
h1.log_in,
h1.reset_password {
    font-size: 24px;
    margin-bottom: 25px;
}

::placeholder {
    color: #b3b7bb;
    opacity: 1
    font-family: var(--font-family-base);
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px 15px;
    justify-items: center;
    align-items: center;
    padding: 20px 0;
    max-width: 600px; /* Prevents logos from spreading too wide */
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    min-width: 90px;
}

.partner-logo img {
    max-width: 100px;
    max-height: 40px;
    height: auto;
    width: auto;
    transition: transform 0.2s ease;
}

.partner-logo img:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-row {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px 10px;
    }

    .partner-logo img {
        max-width: 80px;
        max-height: 32px;
    }
}

div .about_image {
    vertical-align: middle;
    max-width: 90%;
    height: auto;
    display: flex;
    position: relative;
    border-radius: var(--button-radius);
    margin: auto;
}

.about-page .row {
    margin-bottom: 40px;
}

.ebay-logo {
    max-height: 40px; /* Adjust the height as needed */
}

.platform-logos {
    max-height: 24px; /* or an appropriate value */
    max-width: 55px; /* adjust as needed */
    height: auto; /* Maintains aspect ratio */
    width: auto; /* Maintains aspect ratio */
}

/* Overlay styles */
.overlay {
  height: 65px;
  margin-top: 60px;
  width: 100%;
  display: none;
  position: fixed;
  z-index: 1400;
  top: 0;
  left: 0;
  background-color: var(--color-primary);
}

.overlay-content {
  margin: auto;
  text-align: center;
}

.overlay-content .input-group {
  width: 100%;
  display: flex;
  flex-wrap: nowrap; /* Prevent elements from breaking into a new line */
  align-items: center;
}

.overlay-content .form-control.search_field {
  flex-grow: 1; /* Allow the search bar to take available space */
  min-width: 0; /* Prevent overflow */
  width: auto; /* Adjust dynamically */
}

.closebtn {
  position: absolute;
  cursor: pointer;
  top: -5px;
  right: 35px;
  font-size: 40px;
  color: white;
}

#navsearchButton {
  border-radius: 0 50px 50px 0;
  background-color: #000;
  color: #fff;
  border: none;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

#navsearchButton i {
  font-size: 1rem;
}

.custom-overlay,
.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* Hide by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.detailed-results-overlay-content h2 {
  margin-bottom: 10px;
}

.detailed-results-overlay-content p {
  font-size: 14px;
  margin: 15px 0px 10px 0px;
}

/* START OF LOADING SKELETON PAGE */
/* Skeleton animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton filter container */
#skeleton-filter-container {
    width: 100%;
    max-width: 100%;
    background-color: var(--color-light-cloud);
    padding: 0px 0px 0px 5px;
    margin: 100px 0 0 0;
}

#skeleton-filter-container .container {
    margin: 0px;
    padding: 0px;
}

#skeleton-filter-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#skeleton-filter-container.container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Skeleton filter bar */
.skeleton-filter-bar {
    display: flex;
    gap: 5px;
    margin: 10px 0 20px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0px;
}

.skeleton-filter-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.skeleton-filter {
    height: 36px;
    min-width: 80px;
    border-radius: var(--button-radius);
    flex: 0 0 auto;
    margin-right: 8px;
}

/* Skeleton heading area */
#skeleton-heading-container {
    margin-top: 15px;
    margin-bottom: 0px;
    padding-left: 5px;
    padding-right: 0px;
    max-width: 100vw;
}

.skeleton-main-heading {
    height: 32px;
    width: 300px;
    max-width: 100%;
    margin-bottom: 8px;
    margin-left: 0px;
    border-radius: 4px;
    padding-left: 0px;
    padding-right: 0px;
}

.skeleton-results-count {
    height: 20px;
    width: 150px;
    margin-bottom: 20px;
    margin-left: 0px;
    border-radius: 4px;
    padding-left: 0px;
    padding-right: 0px;
}

/* Skeleton results grid */
#skeleton-results-container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    margin: 0;
}

#skeleton-results-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.skeleton-result-item {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 10px;
    height: auto;
    display: block;
    float: left;
}

/* Responsive grid matching your existing breakpoints */
@media (min-width: 1200px) {
    .skeleton-result-item {
        flex: 0 0 calc(20% - 5px);
        max-width: calc(20% - 5px);
        width: calc(20% - 5px);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .skeleton-result-item {
        flex: 0 0 calc(25% - 5px);
        max-width: calc(25% - 5px);
        width: calc(25% - 5px);
    }
}

@media (min-width: 700px) and (max-width: 991px) {
    .skeleton-result-item {
        flex: 0 0 calc(33.333% - 5px);
        max-width: calc(33.333% - 5px);
        width: calc(33.333% - 5px);
    }
}

@media (max-width: 700px) {
    .skeleton-result-item {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        width: calc(50% - 5px);
    }
}

/* Skeleton card */
.skeleton-card {
    border-radius: var(--button-radius);
    background-color: transparent;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    height: 250px;
    width: 100%;
    border-radius: var(--button-radius);
    margin-bottom: 12px;
}

.skeleton-card-body {
    padding: 0 12px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.skeleton-title {
    height: 18px;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 2px;
}

.skeleton-size-condition {
    height: 16px;
    width: 70%;
    margin-bottom: 8px;
    border-radius: 2px;
}

.skeleton-price {
    height: 24px;
    width: 50%;
    margin-top: 5px;
    border-radius: 2px;
}

/* Loading message */
#loading-title {
    text-align: center;
    margin: 40px 0;
    color: var(--color-gray-dark);
    padding: 0 15px;
}

.website-progress {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.website-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 6px rgba(20, 88, 64, 0.1);
}

/* All boxes scan simultaneously */
.website-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(20, 88, 64, 0.15) 25%,
        rgba(20, 88, 64, 0.3) 50%,
        rgba(20, 88, 64, 0.15) 75%,
        transparent 100%
    );
    animation: syncScan 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes syncScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .website-progress {
        gap: 10px;
        margin: 20px 0;
        padding: 0 15px;
        max-width: 90%;
    }

    .website-item {
        min-width: 80px;
        max-width: 100px;
        padding: 10px 8px;
        flex: 1 1 calc(33.333% - 10px);
    }

    .website-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 6px;
    }

    .website-name {
        font-size: 13px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .website-progress {
        gap: 8px;
        padding: 0 10px;
        max-width: 90%;
    }

    .website-item {
        min-width: 70px;
        max-width: 90px;
        padding: 8px 6px;
        flex: 1 1 calc(50% - 8px);
    }

    .website-logo {
        width: 38px;
        height: 38px;
        margin-bottom: 4px;
    }

    .website-name {
        font-size: 12px;
        width: 38px;
        height: 38px;
    }

    .status-indicator {
        width: 10px;
        height: 10px;
        top: 3px;
        right: 3px;
    }
}

.website-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 8px;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
    border: none;
}

.website-name {
    display: none; /* Hidden by default, JavaScript will show when needed */
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-family-base);
    color: var(--color-primary) !important;
    text-align: center;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: none;
}

.ios-safari .website-name {
    display: flex !important;
}

.ios-safari .website-logo {
    display: none !important;
}

.status-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}
/* END OF LOADING SKELETON PAGE */

/* START OF SUBSCRIPTION PAGE */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.title h1 {
    margin: 0;
    font-size: 24px;
    padding-bottom: 1rem;
}

.title p {
    margin: 5px 0;
    color: #555555;
    font-size: 16px;
}

/* Subscription boxes */
.subscriptions {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 20px;
}

.subscription-box {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.button-container {
    text-align: center;
}

.subscription-title {
    position: absolute;
    top: -20px;
    left: 50%;
    width: 70%;
    transform: translateX(-50%);
    padding: 5px 20px;
    border-radius: 12px;
    color: #fff;
    background-color: #b57ba6;
    font-weight: bold;
}

.subscription-box h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.subscription-box h2 span.price-period {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.subscription-box h2 span.free-price-period {
    color: #fff;
}

.subscription-features-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-weight: 400;
    font-size: 18px;
    text-align: left;
}

.subscription-features-container div {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Consistent spacing between list items */
    color: #666;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
}

.features .tick {
    vertical-align: top;
    text-align: left;
}

.features .description {
    padding-left: 7px;
    padding-bottom: 10px;
}

.subscribe-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 60%;
    max-width: 200px;
    margin: 0 auto;
    font-size: 16px;
}

.subscribe-button:hover {
  background-color: #e4c9d8;
  color: #000;
  font-weight: 600;
}

.subscription-overlay .btn.search_button {
  font-size: 14px;
  font-weight: 800;
  height: 40px;
  width: auto; /* Adjust width to fit content */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 25px;
  letter-spacing: 1px;
  border-radius: 8px; /* Adjust border-radius to match the overlay */
  color: #fff;
  background-color: #000;
  border-color: #000;
  font-family: var(--font-family-base);
  margin-left: 10px; /* Add some spacing between input and button */
  border-radius: 0 50px 50px 0;
}

#regularSubscriptionCustomOverlay .detailed-results-overlay-content{
  position: relative;
}

#regularSubscriptionCustomOverlay .closebtn {
  position: absolute;
  cursor: pointer;
  top: 5px;
  right: 15px;
  font-size: 30px;
  color: #000;
}

#VIPSubscriptionCustomOverlay .detailed-results-overlay-content{
  position: relative;
}

#VIPSubscriptionCustomOverlay .closebtn {
  position: absolute;
  cursor: pointer;
  top: 5px;
  right: 15px;
  font-size: 30px;
  color: #000;
}


/* Payment options */
.payment-options {
    background-color: #ebdce2;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: bold;
}

.payment-logo {
    height: 20px;
    margin: 15px;
}

.g-recaptcha {
    padding-top: 10px;
}

.alert-error {
  color: #a94442;
  font-size: 14px;
  border-color: #fff;
  background-color: #fff;
}

.alert {
  padding: 5px;
  margin-bottom: 0px;
  border: none;
  border-radius: 0px;
}

.subscription-alert-message p {
  margin: 0px;
}

.alert-success {
  color: #033500;
  font-size: 14px;
  border-color: #fff;
  background-color: #fff;
}

@media (max-width: 568px) {
    .subscription-overlay .input-group .btn.search_button {
      width: 100%;
      margin-left: 0; /* Remove the left margin on smaller screens */
      margin-top: 10px; /* Add some spacing between input and button */
      border-radius: 50px !important;
    }
    .subscription-overlay .input-group .form-control {
      border-radius: 50px !important;
    }
    .payment-options {
        justify-content: center;
        align-items: center;
    }

    .payment-options .payment-logo:nth-child(-n+3) {
        margin-right: 20px; /* Add extra spacing between first 3 logos */
    }

    .payment-options .payment-logo:nth-child(n+4) {
        margin-top: 10px; /* Add extra spacing between first and second row */
    }
}
/* END OF SUBSCRIPTION PAGE */

/* START OF LANDING PAGE CTA */
/* Sliding box container */
.sliding-box {
  position: absolute;
  left: -300px; /* Hidden offscreen */
  top: 430px; /* Adjust position relative to search bar */
  width: 280px;
  padding: 15px;
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: left 0.5s ease; /* Smooth slide animation */
  z-index: 1000; /* Ensure it stays above other elements */
  background-color: #e4c9d8;
}

/* Content inside the sliding box */
.sliding-content p {
  margin: 0;
  font-size: 16px;
  color: #000;
  padding-bottom: 10px;
}

.sliding-content a {
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  background-color: var(--color-primary);
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 5px;
}

.sliding-content a:hover {
  background-color: var(--color-primary);
}

/* Toggle button */
.toggle-button {
  position: absolute;
  right: -40px; /* Place the button outside the box */
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
}

.toggle-button:hover {
  background-color: #e4c9d8;
  color: #000;
}
/* END OF LANDING PAGE CTA */

/* START OF BLOG PAGE STYLES */
.hero {
  position: relative;
  width: 100%;
  height: 544px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}
.hero .text-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 10px 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.hero .text-box h1 {
  margin: 0;
  font-size: 24px;
}
.hero .text-box p {
  margin: 0;
  font-size: 14px;
  color: gray;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
  gap: 20px;
}

.blog-post {
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  height: 250px;
  background-size: cover;
  background-position: center;
}

.blog-post .text-box {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: white;
  padding: 10px 15px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.blog-post .text-box h2 {
  margin: 0;
  font-size: 16px;
}
.blog-post .text-box p {
  margin: 0;
  font-size: 12px;
  color: gray;
}
.blog-post a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.blog-post a .text-box {
  z-index: 2;
}

.blog-post a:hover:before {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-post {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 568px) {
  .blog-post {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
div.blog.container {
  margin-top: 15px;
}
div.blog.container p {
  font-size: 14px;
  margin-top: 20px;
}
div.blog.container li {
  font-size: 14px;
}
.normal-section h2 {
    font-size: 18px;
}
.call-to-action {
  background-color: #e4c9d8;
  padding: 30px;
  border: 1px solid #ddd;
  text-align: center; /* Optional: center-align the call to action */
  margin-bottom: 20px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}
/* END OF BLOG PAGE STYLES */

/* START OF SIGN UP PAGE STYLES */
.password-requirements {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: left;
    position: absolute;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    width: 100%;
}
.password-requirements li {
    margin-bottom: 0.25rem;
}
.password-requirements .requirement-icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 5px;
}
.password-requirements .valid {
    color: #28a745;
}
.password-requirements .invalid {
    color: #dc3545;
}
#passwordMatch {
    font-size: 0.85rem;
}
.background-image-signup-login {
    background-image: url("../img/background-image-signup-login.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 5px 0;
    margin-bottom: 0;
    position: relative;
}
/* END OF SIGN UP PAGE STYLES */

/* START OF USER-ADMIN PAGE STYLES */
#page-title {
    padding: 15px 0px
}

.password-match {
  font-size: 0.9em;
}

#resetMessage {
    display: none;
}

#password-reset-form {
    display: none;
}

.pick_new_password {
    max-width: 500px;
    margin: 0 auto;
}
/* END OF USER-ADMIN PAGE STYLES */

/* START OF USER_HOME_PAGE STYLES */
.user-dashboard {
    display: flex;
    gap: 30px;
}

.sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar h3 {
    margin: 0 0 0.5rem 0;
    color: #145840;
    font-size: 1.8rem;
}

.main-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.welcome-text h2 {
    margin: 0 0 5px 0;
}

.welcome-text p {
    margin: 0;
    color: #6c757d;
}

.menu-item {
    display: block;
    padding: 12px 0px 12px 0px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    text-decoration: none;
    font-weight: 700;
}

.menu-item.active {
    background-color: var(--primary-color);
    color: white;
}

.menu-item.danger:hover {
    background-color: var(--danger-color);
    color: white;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.update-password-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.update-password-btn:hover {
    background-color: #E4C9D8;
    color: black;
}

button.danger {
    background-color: #F26A6A;
    color: white;
}

button.danger:hover {
    background-color: #FA461D;
    color: white;
}

@media (max-width: 768px) {
    .user-dashboard {
        flex-direction: column;
    }
    .sidebar {
        flex: 1 1 auto;
    }
}

#password-modal,
#delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

#password-modal > div, #delete-modal > div {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

/* Toggle password buttons */
#toggleCurrentPassword,
#toggleNewPassword,
#toggleConfirmPassword,
#deletePassword {
    position: absolute;
    right: 10px;
    transform: translateY(60%);
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Form group styling */
#password-form div, #delete-form div {
    margin-bottom: 15px;
    position: relative;
}

#password-form div:nth-child(3), #delete-form div {
    margin-bottom: 20px;
}

/* Action buttons container */
#password-form div:last-child, #delete-form div:last-child {
    display: flex;
    justify-content: space-between;
}

/* Form labels in password and delete modals */
#password-modal label,
#delete-modal label {
    display: block;
    margin-bottom: 5px;
}

/* Form inputs in password and delete modals */
#password-modal input[type="password"],
#delete-modal input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Cancel buttons */
#cancel-password-btn,
#cancel-delete-btn {
    background-color: #6c757d;
}

/* Error messages */
#current-password-error,
#new-password-error,
#confirm-password-error {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

#measurements-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#measurements-modal > div {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.measurements-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.measurements-container ul {
    list-style-type: none;
    padding-left: 0;
}

.measurements-container li {
    margin-bottom: 8px;
}

#update-info {
    margin: 15px 0;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 3px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.update-btn {
    background-color: var(--color-primary);
    color: white;
}

.update-btn:hover {
    background-color: #0d3e2d;
}

.update-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
#subscription-modal,
#cancel-subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#subscription-modal > div,
#cancel-subscription-modal > div {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.subscription-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#subscription-actions {
    margin: 20px 0;
    text-align: center;
}

.danger-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.danger-btn:hover {
    background-color: #c82333;
}
/* END OF USER_HOME_PAGE STYLES */

/* START OF CLUB_LANDING STYLES */
.club-landing-container {
    max-width: 95vw;
    margin-top: 100px;
}

.verification-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-section {
    background: linear-gradient(135deg, #f093fb 0%, #145840 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.content-section {
    padding: 3rem 2rem;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid #e8eaff;
}

.trust-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.trust-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.trust-desc {
    color: #666;
    font-size: 0.9rem;
}

.verification-process {
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 2rem -2rem -3rem -2rem;
    height: 170px;
}

.cta-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.guarantee {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }

    .hero-section, .content-section {
        padding: 2rem 1.5rem;
    }
}
/* END OF CLUB_LANDING STYLES */

/* Login Prompt Modal Styles */

#loginPromptModal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

#loginPromptModal .modal-content {
  text-align: center;
  background-color: white;
  padding: 2rem;
  border-radius: var(--button-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative; /* Add this */
}

#loginPromptModal h2 {
  margin-bottom: 1rem;
  color: #145840;
}

#loginPromptModal p {
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: #666;
  font-family: var(--font-family-base);
  font-size: 14px;
}

.login-prompt-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.login-prompt-buttons .btn {
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-login-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  line-height: 1; /* Prevents extra spacing */
}

.close-login-modal:hover,
.close-login-modal:focus {
  color: #000;
}


/* Favorites Section Styles */
.favorites-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f2efeb;
    padding-bottom: 1rem;
}

.favorites-header h3 {
    margin: 0 0 0.5rem 0;
    color: #145840;
    font-size: 1.8rem;
}

.favorites-count {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Loading State */
.favorites-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.favorites-loading img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.favorites-loading p {
    color: #666;
    font-size: 1.1rem;
}

/* Empty State */
.favorites-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.empty-state-content {
    text-align: center;
    max-width: 400px;
}

.empty-state-content svg {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-state-content h4 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Favorites Grid - reuse search results styles */
#favorites-container {
    width: 100%;
    max-width: 100%;
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

#favorites-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0px !important;
    padding: 0px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Favorite item cards - match search results */
#favorites-row .result-item {
    display: block;
    float: left;
    padding: 0px !important;
    margin-bottom: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    height: auto !important;
}

/* 5 per row for large screens */
@media (min-width: 1200px) {
    #favorites-row .result-item {
        flex: 0 0 calc(20% - 5px) !important;
        max-width: calc(20% - 5px) !important;
        width: calc(20% - 5px) !important;
    }
}

/* 4 per row for medium-large screens */
@media (min-width: 992px) and (max-width: 1199px) {
    #favorites-row .result-item {
        flex: 0 0 calc(25% - 5px) !important;
        max-width: calc(25% - 5px) !important;
        width: calc(25% - 5px) !important;
    }
}

/* 3 per row for medium screens */
@media (min-width: 700px) and (max-width: 991px) {
    #favorites-row .result-item {
        flex: 0 0 calc(33.333% - 5px) !important;
        max-width: calc(33.333% - 5px) !important;
        width: calc(33.333% - 5px) !important;
    }
}

/* 2 per row for small screens */
@media (max-width: 700px) {
    #favorites-row .result-item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
    }
}

#favorites-row .card {
    border-radius: 8px !important;
    border: none !important;
    height: 100% !important;
    width: 100% !important;
    transition: transform 0.2s;
    background-color: transparent !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

#favorites-row .carousel.slide.card-img-top {
    border-radius: 8px !important;
    max-height: 210px;
    background-color: #f2f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

#favorites-row .carousel-inner {
    width: 100%;
    height: 100%;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    position: relative;
}

#favorites-row .card-img-top {
    border-radius: 8px !important;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f2f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 250px;
}

#favorites-row .carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#favorites-row .carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
}

/* Card body - match search results */
#favorites-row .card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#favorites-row .card-heading {
    margin-bottom: 4px;
    height: 18px;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#favorites-row .card-heading a {
    color: var(--color-TC-black);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
    font-family: var(--font-family-base);
}

#favorites-row .card-heading a:hover {
    color: var(--color-TC-black);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 500;
    font-family: var(--font-family-base);
}

#favorites-row .price_logo_row {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-top: 4px;
}

#favorites-row .item_size {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

#favorites-row .item_size h5 {
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    color: #555555;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#favorites-row .col-md-6.item_price {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

#favorites-row .item_price h5 {
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 15px !important;
    font-weight: var(--font-weight-bold);
    color: var(--color-TC-black);
}

#favorites-row .item-meta small {
    color: #666;
    font-size: var(--font-size-small);
}

/* Smaller font size for item_size on very small screens */
@media (max-width: 420px) {
    #favorites-row .item_size h5 {
        font-size: 12px !important;
    }
}

/* Remove button for favorites */
.remove-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 18px;
}

.remove-favorite-btn:hover {
    background-color: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.legal-document {
    padding: 40px 0;
}

.legal-document .container {
    align-content: left;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.legal-section p {
    font-size: 12px;
    line-height: 1.8;
    margin: 0px;
}

.legal-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-section li {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-info {
    background-color: #fff;
    padding: 20px;
    border-left: 4px solid #145840;
    margin-top: 10px;
    max-width: 300px;
}

.contact-info a {
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: none;
}