@import url("./tailwind.css");
@import url("./components.css");

:root {
  --text-color-secondary: #7f7f7f;
  --text-color-secondary-bold: #434343;
}

/* Глобальні стилі для всіх радіо-кнопок на проекті */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

input[type="radio"]:hover {
  border-color: var(--primary-color);
}

input[type="radio"]:checked {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
}

input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb, 0, 123, 255), 0.25);
}

/* Додайте на початку файлу */
:root {
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
  --sar: env(safe-area-inset-right);
}

/* Оновіть стилі для body */
body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  margin: 0;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
  padding-top: 0 !important;
  position: relative;
  overflow-x: hidden;
}

/* Оновіть стилі для .hat */
.hat {
  background-color: #ffffff;
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: max(var(--sat), 20px);
}

/* Додайте новий стиль для основного контейнера */
.page {
  background-color: #ffffff !important;
  min-height: 100vh;
  /* Специфічні фікси для iOS */
  min-height: -webkit-fill-available;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Фікси для iOS Safari */
@supports (-webkit-touch-callout: none) {
  html,
  body,
  .page,
  #body,
  .hat,
  main,
  .footer {
    background-color: #ffffff !important;
  }

  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: -1;
  }
}

* {
  box-sizing: border-box;
  margin: 0px;
}

h2 {
  font-size: 32px;
  font-weight: 700;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

p {
  color: var(--text-color-secondary);
  margin: 0;
}

b {
  color: var(--text-color-secondary-bold);
  margin: 0;
}

@media screen and (max-width: 767px) {
  h2 {
    font-size: 20px;
    font-weight: 700;
  }
}

img {
  max-width: 100%;
  max-height: 100%;
}
input,
button,
textarea {
  box-shadow: unset !important;
  outline: unset !important;
}
.icon-menu {
  color: #424242;
}
.btn {
  border-radius: 5px;
}
#cancelquantity,
#setquantity {
  border-radius: 0.25rem;
}
#basket .paper .btn {
  border-radius: 7px;
}

/*Шапка сайта*/

.hat {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 12px;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 0;
}

.hat-logo {
  width: 60px;
  border-radius: 8px;
}

.hat-menu {
  min-height: 50px;
  flex: 1;
}

.search {
  width: 75%;
  padding: 8px;
}

.basket-btn {
  height: 40px;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.basket-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.basket-btn:active {
  transform: scale(0.95);
}
.copyright {
  margin-top: 1rem;
  margin-bottom: unset;
}

.a_store_name {
  text-decoration: none;
  color: #212529;
  float: left;
}

.a_store_name:hover {
  color: #212529;
  text-decoration: none;
}

.store-name {
  font-size: 1.5em;
}

.custom-control-label {
  margin-bottom: 1rem;
}

.navigation {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  padding-top: 20px;
}

.navigation-links {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  margin-left: 8px;
}

.navigation-link {
  margin-left: 8px;
  margin-right: 8px;
  color: #484848;
  cursor: pointer;
}

/*страница - категории + содержимое*/

.page {
  max-width: 1140px;
  min-height: calc(100% - 310px);
  margin: 0 auto;
}

/* .category-sub-sub-item {
    font-size: 0.9;
    padding-top: 12px;
    padding-left: 28px;
    padding-bottom: 12px;
    font-weight: lighter;
    cursor: pointer;
}

.category-sub-sub-item:active {
    font-weight: 600;
} */

/*Содержимое*/

.content-category-item-name {
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 26px;
}

.products_box {
  padding-bottom: 19px;
}

/*Блок товара*/

.content-item {
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition-timing-function: ease-in-out;
  transition-duration: 0.3s;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f6f6f6;
}

.content-item-name {
  font-size: 1em;
  margin-top: 4px;
  color: #007bff;
  overflow: hidden;
  max-height: 50px;
  line-height: 25px;
  position: relative;
  color: #585858;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-item-description {
  font-size: 0.9em;
  margin-top: 2px;
  overflow: hidden;
  max-height: 50px;
  line-height: 20px;
  position: relative;
}

.content-item-price {
  font-size: 1.1em;
  font-weight: bold;
}

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

.content-item-buy-btn,
.content-item-details-btn {
  width: 100%;
  margin: 0;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-item-buy-btn {
  background-color: var(--primary-color) !important;
  border: var(--primary-color) 1px solid !important;
  color: white;
}

.content-item-details-btn {
  background-color: #434343 !important;
  border: #434343 1px solid !important;
  color: white;
}

.content-item-details-btn:hover,
.content-item-buy-btn:hover {
  opacity: 0.75;
  color: white;
}

.btn-outline-primary.active {
  opacity: 1;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background: var(--primary-color) !important;
  border: var(--primary-color) 1px solid !important;
  opacity: 0.9;
}

/*Страница товара*/

.content-product {
  width: 100%;
}

.content-product-img {
  width: 350px;
}

.content-product-buy {
  margin: 32px;
}

.content-product-buy-price {
  font-size: 1.5em;
  margin-bottom: 8px;
}

.content-product-name {
  font-size: 1.5em;
  margin-bottom: 8px;
  margin-left: 8px;
  margin-right: 8px;
}

.content-product-description {
  margin-left: 8px;
  margin-right: 8px;
}

/*Футер*/

.footer {
  min-height: 100px;
  padding: 8px;
  font-size: 0.8em;
  border-top: 1px solid #d9d9d9;
  margin-top: 15px;
}

#basket {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  right: 0px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#basket.show {
  opacity: 1;
  visibility: visible;
}

#basketbox {
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  max-width: 600px;
  max-height: 100vh;
  margin: 15px;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
  position: absolute;
  right: 0px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#basket.show #basketbox {
  transform: translateX(0);
}

/* Анімація для елементів всередині кошика */
#basketbox > div:first-child {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

#basket.show #basketbox > div:first-child {
  opacity: 1;
  transform: translateY(0);
}

#basketbox > div:nth-child(2) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
}

#basket.show #basketbox > div:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
}

.basket-poweredby {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s;
}

#basket.show .basket-poweredby {
  opacity: 1;
  transform: translateY(0);
}

#cmodbox {
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  margin: 15px;
  background: #efefef;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
}

#quantytymodalbox {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  top: 0px;
  left: 0px;
  z-index: 8;
}

#quantytymodal {
  position: fixed;
  width: 300px;
  min-height: 100px;
  background: rgba(255, 255, 255, 0.2);
  top: calc(50% - 100px);
  left: calc(50% - 150px);
  background: white;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
  padding: 5px;
}

#id_Dialog_title {
  max-width: calc(100% - 80px);
  font-size: 16pt;
  padding: 24px;
  padding-right: 0;
  float: left;
  white-space: nowrap;
  /* Отменяем перенос текста */
  overflow: hidden;
  /* Обрезаем содержимое */
  text-overflow: ellipsis;
}

#id_Dialog_title_cmod {
  max-width: calc(100% - 80px);
  font-size: 16pt;
  padding: 24px;
  padding-right: 0;
  float: left;
  white-space: nowrap;
  /* Отменяем перенос текста */
  overflow: hidden;
  /* Обрезаем содержимое */
  text-overflow: ellipsis;
}

#basketclose {
  cursor: pointer;
  cursor: pointer;
  font-size: 16pt;
  margin: 15px;
  padding: 13px 16px;
  float: right;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.paper {
  height: calc(100% - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: white;
  margin: 10px;
  border-radius: 15px;
  margin-bottom: 3px;
}
.margin_left_1 {
  margin-left: 1rem;
}

#basketCounter {
  min-width: 17px;
  height: 17px;
  border-radius: 12px;
  background: var(--primary-color);
  color: white;
  font-size: 9.5;
  padding: 2px;
  font-weight: 600;
  position: absolute;
  top: 1px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

table tr td {
  padding: 8px;
}

.quantytybox {
  width: 140px;
}

@media screen and (max-width: 600px) {
  .content-item:hover {
    background: unset;
  }
  .m600 {
    margin: 0px !important;
    width: 100% !important;
    height: 100% !important;
  }
  .mob_display_none {
    display: none;
  }
  .mob_mr_left_none {
    margin-left: 0 !important;
  }
  .mob_display_flex {
    display: flex;
    flex-direction: column;
  }
  .contacts,
  .st_name_f {
    order: 0;
  }
  .contacts {
    margin: 1rem 0;
  }
  .order_1,
  .d-flex {
    order: 1;
  }
  #basketbox {
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  #basket.show #basketbox {
    transform: translateY(0);
  }

  /* Анімації для мобільних пристроїв */
  #basketbox > div:first-child,
  #basketbox > div:nth-child(2),
  .basket-poweredby {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
  }

  #basket.show #basketbox > div:first-child {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  #basket.show #basketbox > div:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
  }

  #basket.show .basket-poweredby {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
  }
  .page {
    min-height: calc(100% - 400px);
  }
}

@media screen and (max-width: 540px) {
  .m540 {
    display: none !important;
  }
}

@media screen and (max-width: 500px) {
  .m500 {
    display: none !important;
  }
  .quantytybox {
    width: 80px;
  }
}

@media screen and (max-width: 450px) {
  .m450 {
    display: none !important;
  }
}

.unselectable {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently not supported by any browser */
}

.intl-tel-input {
  width: 100%;
}

.skyservice {
  color: #484848;
}

.divider {
  border-top: 1px solid #e0e0e0;
  width: 100%;
}

#basketButton {
  position: relative;
  z-index: 11;
}

.basket-btn__label {
  width: min-content;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-control {
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
}

select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
  outline: none;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff;
  opacity: 0.9;
}

.btn-success:disabled {
  background-color: var(--primary-color-50) !important;
  background-color: #9ca3af !important;

  border-color: var(--primary-color-50) !important;
  border-color: #9ca3af !important;
  color: #fff;
  opacity: 0.9;
}

.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.badge,
.bg-success {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}
.bg-secondary {
  background-color: #212529 !important;
  color: #f8f9fa !important;
}

@media screen and (max-width: 768px) {
  #desktop-original-content {
    margin-left: 0;
  }

  .swiper {
    padding: 0 !important;
  }
}

.validation-label {
  color: #dc3545;
  font-size: small;
}

.basket-poweredby {
  width: 100%;
  font-size: 10pt;
  min-height: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 8px 0;
  background: #fff;
  color: #888;
  z-index: 1;
}
.basket-poweredby a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Privacy agreement checkbox styling */
.privacy-checkbox {
  accent-color: var(--primary-color, #007bff);
}

.privacy-checkbox:checked {
  background-color: var(--primary-color, #007bff);
  border-color: var(--primary-color, #007bff);
}

/* For browsers that don't support accent-color */
.privacy-checkbox:checked {
  background-color: var(--primary-color, #007bff) !important;
  border-color: var(--primary-color, #007bff) !important;
}

/* BEM стилі для чекбоксів форми замовлення */
.checkbox {
  position: relative;
  display: inline-block;
  margin-right: 8px;
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox--small {
  height: 12px;
  width: 12px;
}

.checkbox--large {
  height: 20px;
  width: 20px;
}

.checkbox__input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.checkbox__mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.checkbox--large .checkbox__mark {
  border: 2px solid #d1d5db;
  border-radius: 4px;
}

.checkbox:hover .checkbox__mark {
  border-color: var(--primary-color, #007bff);
}

.checkbox__input:checked + .checkbox__mark {
  background-color: var(--primary-color, #007bff);
  border-color: var(--primary-color, #007bff);
}

.checkbox__mark::after {
  content: "";
  position: absolute;
  display: none;
  left: 3px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox--large .checkbox__mark::after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-width: 0 3px 3px 0;
}

.checkbox__input:checked + .checkbox__mark::after {
  display: block;
}
