﻿.homePageSwiper ~ .swiper-button-prev {
  left: -40px;
}

.homePageSwiper ~ .swiper-button-next {
  right: -40px;
}

.homePageSwiper ~ .swiper-button-prev,
.homePageSwiper ~ .swiper-button-next {
  display: block;
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -42px;
  transition: opacity 0.3s;
  border: 1px solid #e1e7ec;
  border-radius: 50%;
  background-color: #28a745;
  color: #fefffe;
  line-height: 38px;
  text-align: center;
  opacity: 0.7;
}

.homePageSwiper ~ .swiper-button-next {
  right: -50px;
}

.selectstyle__box__select__state, .selectstyle__box__select__county, .selectstyle__box__select__product-variant {
  display: block;
  width: 100%;
  padding: 0.625rem 2rem 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1e293b;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 42px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.selectstyle__box__select__state:hover,
.selectstyle__box__select__county:hover,
.selectstyle__box__select__product-variant:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.selectstyle__box__select__state:focus,
.selectstyle__box__select__county:focus,
.selectstyle__box__select__product-variant:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selectstyle__box__select__state option,
.selectstyle__box__select__county option,
.selectstyle__box__select__product-variant option {
  padding: 0.625rem;
  font-size: 0.875rem;
  color: #1e293b;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  left: 0;
  margin-top: 4px;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 50;
  transition: transform 0.2s ease-out;
}

.selectstyle__box__select__state option:hover,
.selectstyle__box__select__county option:hover,
.selectstyle__box__select__product-variant option:hover {
  background-color: #f1f5f9;
}

.selectstyle__box__select__state option:disabled,
.selectstyle__box__select__county option:disabled,
.selectstyle__box__select__product-variant option:disabled {
  color: #94a3b8;
  background-color: #f8fafc;
}

/* Custom scrollbar for dropdown */
.selectstyle__box__select__state,
.selectstyle__box__select__county,
.selectstyle__box__select__product-variant {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.selectstyle__box__select__state::-webkit-scrollbar,
.selectstyle__box__select__county::-webkit-scrollbar,
.selectstyle__box__select__product-variant::-webkit-scrollbar {
  width: 6px;
}

.selectstyle__box__select__state::-webkit-scrollbar-track,
.selectstyle__box__select__county::-webkit-scrollbar-track,
.selectstyle__box__select__product-variant::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.selectstyle__box__select__state::-webkit-scrollbar-thumb,
.selectstyle__box__select__county::-webkit-scrollbar-thumb,
.selectstyle__box__select__product-variant::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

/* Handle bottom space */
@media screen and (max-height: 400px) {
  .selectstyle__box__select__state option,
  .selectstyle__box__select__county option,
  .selectstyle__box__select__product-variant option {
    max-height: 150px;
  }
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 0.875rem;
}

.state-county-select {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .state-county-select {
    flex-direction: row;
    gap: 1.5rem;
  }

  .state-select,
  .product-variant-select {
    flex: 1;
  }
}

.product-carousel-wrapper {
  position: relative;
  margin: 0 50px;
}

#opcEmptyCartPopularProduct .product-carousel-wrapper .product-card {
  width: auto;
}

.product-carousel-wrapper .swiper-button-next::after {
  content: "\e095";
  font-family: feather;
  font-size: 19px;
}

.product-carousel-wrapper .swiper-button-prev::after {
  content: "\e094";
  font-family: feather;
  font-size: 19px;
}

.product-carousel-wrapper .swiper-pagination-bullet-active {
  background: var(--secondary-color);
}

.product-carousel-wrapper .state-county-select {
  flex-direction: row;
  gap: 0px;
}

 .product-carousel-wrapper .state-county-select select {
   padding: 0 20px 0 4px;
   height: 40px;
   border: 1px solid #d3d6de;
   box-shadow: inset 2px 3px 5px rgba(0, 0, 0, 0.08);
 }

.state-select-label {
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #333333;
  margin: 0px 0px 5px;
}

.product-summary > h4 {
  margin: 0 0 10px !important;
}

.select-style-wrapper label {
  margin: 0px 0px 5px !important;
}

.swiper-button-disabled {
  display: none !important;
}

.product-grid-mobile {
  display: none;
}

@media (max-width: 700px) {
  .product-carousel-wrapper {
    position: relative;
    margin: 0px 10px;
  }

  .opb .opb-product-title {
    font-size: 20px;
  }

  .home-page-carousel-wrapper .swiper-wrapper {
    display: block;
  }

  .home-page-carousel-wrapper .swiper-slide {
    width: 100% !important;
    margin-bottom: 15px;
  }

  .home-page-carousel-wrapper .swiper-pagination,
  .home-page-carousel-wrapper .swiper-button-next,
  .home-page-carousel-wrapper .swiper-button-prev {
    display: none;
  }
}

@media (min-width: 1200px) {
  .homePageSwiper ~ .swiper-button-prev {
    left: -50px;
  }
}

.product-grid-mobile .product-card {
  max-width: 100% !important;
  margin-bottom: 20px;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto;
}

@media (min-width: 701px) {
  .homePageSwiper .product-card .product-short-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    max-height: 150px;
  }
}

.product-carousel-wrapper .swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom, .swiper-pagination-fraction {
  bottom: -30px;
}

.opb .opb-product-title {
  color: var(--primary-color);
  margin: 0;
  font-size: 18px;
  line-height: 20px;
  display: block;
  min-height: 30px;
  margin-bottom: 5px;
}

.product-card .product-title {
  margin-top: 0;
  margin-bottom: 5px;
  min-height: 30px;
  font-size: 18px;
  display: block
}
