@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #333333;
  list-style: none;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

.hidden {
  display: none !important;
}

html {
  background-color: white;
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  scrollbar-width: none; /* Firefox */
}

::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

body {
  background-color: white;
  max-width: 1024px;
  margin: auto;
}

header {
  background-color: white;
  position: sticky;
  top: 0;
}

header nav {
  height: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  position: sticky;
  top: 0;
}


.cart-modal__content .cart-item__title,
.cart-modal__content .cart-item__price,
.cart-modal__content .cart-item__remove {
  font-size: 13px !important;
}
.product-modal__qty, .product-modal__qty span, .product-modal__qty button {
  font-size: 18px !important;
}

.product-modal__content h3,
.product-modal__content .group-block > h3,
.product-modal__content .group-block h3 {
  font-size: 1rem !important;
}
.category-toggle-header .category-arrow svg path {
  stroke: #ff7500;
}
.category-toggle-header .category-title {
  font-size: 13px;
}

.cart-item__price {
  color: #ff7500;
  font-weight: bold;
  font-size: 1em;
}

.dialogHeader {
  background-color: white;
  height: 45px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1;
}

.dialogHeader h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.dialogHeader img {
  width: 15px;
  height: 15px;
  cursor: pointer;
}



.partner-header {
 height: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  position: sticky;
  top: 0;
}

.partner-main {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 5rem;
}
.partner-header__logo {
  height: 40px;
  cursor: pointer;
  margin-left: 15px;
}

.category-toggle-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0;
  padding: 0.5rem 0 0 0;
}
.category-toggle-header .category-arrow {
  margin-right: 0;
}
.category-toggle-header .category-title {
  margin-left: 0;
}
.category-toggle-header {
  gap: 0 !important;
}
.category-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
  margin-left: 15px;
  margin-right: 2px;
  font-size: 1rem;
}
.category-tabs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 15px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  scroll-snap-type: x mandatory;
}

.category-tab {
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  font-size: 16px;
  color: #222;
  font-weight: 500;
  scroll-snap-align: center;
  transition: color 0.2s;
}

.category-tab.active {
  color: #222;
  font-weight: 700;
  background: none;
  box-shadow: none;
  border: none;
  display: inline-block;
  border-radius: 0;
}

.category-tab.active span, .category-tab.active {
  border-bottom: 2px solid #ff7500;
  font-weight: bold;
}

.categories-content {
  display: flex;
  flex-direction: column;
}

.category-block {
  background: #fff;
}

.category-header {
  display: none;
}

.category-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ff7500;
}

.category-toggle {
  display: none;
}

.product-list {
  display: flex;
  flex-direction: column;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.product-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.product-list .product-item + .product-item {
  border-top: 0;
}

.product-list .product-item:first-child {
  border-top: 0;
}

.product-list .product-item:last-child {
  border-bottom: 0;
}

.category-block + .category-block .product-item:first-child {
  border-top: 0;
}

.product-item:hover {
  background: #fafafa;
}

.product-thumb {
  width: 100px;
  height: 80px; 
  max-width: 100px;
  max-height: 80px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 10px;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  height: 80px; 
  overflow: hidden; 
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.product-name {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: #333;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  margin: 0;
  color: #ff7500;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.product-description {
  margin: 0.2rem 0 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.2;
  overflow: hidden; 
  white-space: pre-wrap; 
  display: block;
  line-height: 1.2em;
  max-height: calc(1.2em * 4); 
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-word;
  text-align: justify;
  text-justify: inter-word;
}

.btn-add {
  display: none;
}

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-primary {
  background: #ff7500;
  border: none;
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff7ef;
  color: #ff7500;
  border: 1px solid #ff7500;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.btn-link {
  color: #ff7500;
  text-decoration: none;
  font-weight: 600;
  margin-right: 15px;
  cursor: pointer;
}

.cart-qty {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: #faf9f7;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  min-width: 110px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  height: 38px;
}


.cart-modal {
  border: none;
  border-radius: 10px;
  padding: 0;
  max-width: 600px;
  width: 92vw;
  margin: auto;
}

.cart-modal__content {
  background: #fff;
  border-radius: 10px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  white-space: pre-line; 
}

.cart-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 50px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  gap: 1rem;
  flex-shrink: 0;
}

.cart-modal__subtitle {
  margin: 0;
  color: #888;
  font-size: 13px;
}

.cart-modal__items {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-modal__empty {
  margin: 1rem 0;
  text-align: center;
  color: #777;
  font-weight: 600;
}

.cart-item {
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  background: #fff;
}

.cart-item__title {
  margin: 0;
  font-weight: 700;
  color: #333;
  font-size: 16px;
}
  .cart-item__remove {
    background: none;
    border: none;
    color: #ff3b3b;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    padding: 0.25em 0.5em;
    transition: color 0.18s cubic-bezier(.4,0,.2,1);
    font-family: inherit;
  }

.cart-item__details {
  grid-column: 1 / -1;
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 70px;
}
.cart-qty {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: #faf9f7;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  min-width: 110px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  height: 38px;
}

.cart-qty button {
  width: 38px;
  height: 38px;
  border: none;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  color: #ff7500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.18s cubic-bezier(.4,0,.2,1);
  border-radius: 0;
  font-family: inherit;
  vertical-align: middle;
}

.cart-qty span {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  min-width: 38px;
  text-align: center;
  background: #fff;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}
}

.cart-item__remove {
  background: transparent;
  border: none;
  color: #e53935;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}

.cart-modal__footer {
  border-top: 1px solid #f0f0f0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-modal__totals {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 14px;
}

.cart-modal__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
}

.cart-modal__row--muted {
  color: #888;
  font-size: 13px;
}

.cart-modal__row--highlight span,
.cart-modal__row--highlight strong {
  font-weight: 700;
  color: #000;
}

.cart-modal__link-add {
  border: none;
  background: transparent;
  color: #ff7500;
  font-weight: 700;
  font-size: 16px;
  padding: 1.25rem 0 1.25rem 0;
  text-align: left;
  cursor: pointer;
}

.cart-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-modal__actions .btn-primary,
.cart-modal__actions .btn-secondary {
  width: 100%;
}

.cart-modal__min {
  display: none; 
  color: red; 
  text-align: center;
  padding: 15px;
  font-size: 14px;
  font-weight: 500;
}


.product-modal__content {
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.product-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 45px;
  gap: 1rem;
  position: sticky;
  top: 0;
}

.product-modal__header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
}

.btn-close-modal {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.product-modal__image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #fff; 
  
  flex-shrink: 0;
}

.product-modal__image {
  width: 250px;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
}

@media (max-width: 480px) {

  .product-modal__image {
    width: 140px;
  }
  .option-row {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    gap: 0.25rem;
    font-size: 13px;
  }
  .product-modal__footer {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  .product-modal__comments textarea {
    padding: 0.45rem;
    font-size: 13px;
  }
  .product-modal__group-title {
    font-size: 12.5px;
    margin-bottom: 0.25rem;
  }
  .option-row input[type="radio"], .option-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
  .product-modal__image {
    border-radius: 8px;
  }
  .product-modal__section {
    padding: 0 0.75rem;
  }
}

.product-modal__closed-message {
  display: none; 
  color: #e05555; 
  text-align: center;
  font-size: 14px;
}

.product-modal__section {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
}

.product-modal__group-title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin: 0;
  padding-bottom: 0;
  text-transform: none;
}
.product-modal__group-title + .option-row,
.product-modal__group-title {
  margin-top: 0;
}

.product-modal__comments {
  padding: 0 1rem;
  margin-top: .5rem;
}

.product-modal__comments textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.product-modal__comments textarea:focus {
  outline: none;
  border-color: #ff7500;
}

.group-block {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.5rem;
  margin: 0.35rem 0;
}

.option-row {
  display: flex;
  gap: 0.18rem;
  align-items: center;
  margin: 0.04rem 0;
  width: 100%;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
}

.option-row label, .option-row span, .option-row input[type="radio"] + span, .option-row input[type="checkbox"] + span {
  margin-left: 0;
}
.option-row input[type="radio"],
.option-row input[type="checkbox"] {
  margin-right: 0;
}

.option-row input[type="radio"],
.option-row input[type="checkbox"] {
  accent-color: #ff7500;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  position: relative;
  z-index: 1; 
}

.option-row input[type="radio"]:checked,
.option-row input[type="checkbox"]:checked {
  border-color: #ff7500;
  background: #ff7500;
}

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

.option-row input[type="checkbox"] {
  border-radius: 4px;
}

.option-row input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

.option-row {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.product-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  border-top: 1px solid #eee;
  flex-wrap: wrap; 
}

.product-modal__qty {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: #faf9f7;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  min-width: 110px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  height: 100%;
}

.product-modal__closed-message {
  order: 0;
  flex-basis: 100%;
  width: 100%;
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.product-modal__qty { order: 1; }
.product-modal__footer .btn-primary { order: 2; }

.product-modal__qty button {
  width: 38px;
  height: 38px;
  border: none;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  color: #ff7500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s cubic-bezier(.4,0,.2,1);
  border-radius: 0;
}

.product-modal__qty button:hover {
  background: #ececec;
}

.product-modal__qty button:active {
  transform: scale(0.95);
}

.product-modal__qty span {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  min-width: 38px;
  text-align: center;
  background: #fff;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

dialog {
  margin: auto;
  border: none;
  border-radius: 10px;
  padding: 0;
  width: 85%;
  max-width: 500px;
  max-height: 85%;
}

dialog::backdrop {
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

body:has(dialog[open]) {
  overflow: hidden;
}