@font-face {
  font-family: "Ranille";
  src: url("ranille.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #b4b4b4;
  --text-primary: #0f172a;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --brand-color: #0ea5e9;
  --topbar-height: 64px;
  --nav-height: 72px;
  --content-padding: 16px;
  --border-radius: 12px;
  --card-radius: 20px;
  --max-width: 430px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: fixed;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.4;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

#preloadContainer {
  display: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.desktop-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.desktop-warning-text {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .desktop-warning {
    display: flex;
  }

  .app,
  .bottom-nav,
  .modal-overlay {
    display: none !important;
  }
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: env(safe-area-inset-top) var(--content-padding) 0;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-primary);
  width: 100%;
  overflow-x: hidden;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 40px 1fr 40px 40px 40px;
  align-items: center;
  height: var(--topbar-height);
  width: 100%;
  gap: 8px;
}

.product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--content-padding);
  margin-top: 0px;
  width: 100%;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.product-info.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.product-name {
  font-family: "Ranille", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
  margin-right: 10px;
  margin-left: -8px;
}

.product-details {
  padding: 0 var(--content-padding);
  margin-top: 100px;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.product-details.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.product-features {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.product-features span:nth-child(2) {
  margin-left: auto;
}

.product-code {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  -webkit-user-select: text;
  user-select: text;
}

.product-description {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: #f8fafc;
}

.icon-btn img {
  display: block;
  margin: 0 auto;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: brightness(100%);
  transition: filter 0.3s ease;
}

.icon-btn.active img {
  filter: brightness(80%);
}

.content-area {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
  overflow-x: hidden;
  max-width: 100%;
}

.carousel-container {
  width: 100%;
  height: 440px;
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.carousel-container.fade-out {
  opacity: 0;
}

.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  touch-action: pan-x;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  will-change: opacity;
}

.carousel-image.active {
  opacity: 1;
}

.click-zone {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.click-zone.left {
  left: 0;
}

.click-zone.right {
  right: 0;
}

.image-indicators {
  position: absolute;
  bottom: 420px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.indicator-dot {
  width: 30px;
  height: 3px;
  background-color: #666;
  border-radius: 2px;
  transition: background-color 0.4s ease-in-out;
}

.indicator-dot.active {
  background-color: #fff;
}

.swipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.swipe-overlay.active {
  opacity: 1;
}

.swipe-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.swipe-overlay.active .swipe-icon {
  transform: scale(1);
}

.swipe-overlay.exit .swipe-icon {
  transform: scale(0);
  transition: transform 0.4s ease-in;
}

.new-svg-buttons {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -210px;
  z-index: 5;
  gap: 10px;
}

.new-svg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: transparent;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.new-svg-btn:hover {
  transform: translateY(-2px);
}

.new-svg-btn:active {
  transform: translateY(0);
}

.new-svg-btn img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: brightness(100%);
  transition: filter 0.3s ease;
}

.new-svg-btn.active img {
  filter: brightness(80%);
}

.bottom-nav {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  padding: 1px var(--content-padding);
  display: flex;
  justify-content: center;
  z-index: 10;
  width: 100%;
  overflow-x: hidden;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  gap: 70px;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  flex: 0 0 auto;
  margin: 0 70px;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 72px;
}

.nav-item img {
  display: block;
  margin: 0 auto;
  transition: all 0.2s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: brightness(100%);
}

.nav-item.active img {
  filter: brightness(80%);
}

.nav-item:not(:first-child) {
  margin-left: -40px;
}

.nav-item:not(:last-child) {
  margin-right: -40px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vazgec-modal {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  padding-bottom: 0px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.active .vazgec-modal {
  transform: translateY(0);
}

.white-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 250px;
  min-height: unset;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  gap: 1px;
  justify-content: center;
}

.modal-overlay.active .white-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 8px;
}

.menu-item:hover {
  background-color: #f8fafc;
}

.menu-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.menu-item-text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.continue-button {
  width: 380px;
  height: 49px;
  background-color: rgb(0, 0, 0);
  border-radius: 8px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  max-width: calc(100vw - 40px);
  width: min(380px, calc(100vw - 40px));
  transform: translateY(20px);
  opacity: 0;
}

.modal-overlay.active .continue-button {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.4s ease 0.2s;
}

.continue-button:hover {
  transform: translateY(-2px);
  background-color: rgb(20, 20, 20);
}

.settings-modal {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  padding-bottom: 0px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.active .settings-modal {
  transform: translateY(0);
}

.settings-white-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px 20px 20px 20px;
  flex: 0 0 auto;
  margin-top: 0px;
  height: 360px;
  min-height: unset;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.modal-overlay.active .settings-white-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.category-options {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
  max-width: 300px;
  margin-top: 2px;
  justify-content: flex-start;
}

.category-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 25px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-option:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.category-option:active {
  transform: translateY(0);
}

.category-option.selected {
  background-color: #000000;
  color: #ffffff;
}

.settings-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  align-self: flex-start;
}

.products-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
  width: 100%;
  align-self: flex-start;
}

.product-type-options {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
  max-width: 300px;
  justify-content: flex-start;
}

.product-type-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 30px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-type-option:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.product-type-option:active {
  transform: translateY(0);
}

/* Added selected state for product type buttons */
.product-type-option.selected {
  background-color: #000000;
  color: #ffffff;
}

.slider-container {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.range {
  height: 100px;
  width: 200px;
  background: #fff;
  border-radius: 8px;
  padding: 0 50px 0 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sliderValue {
  position: relative;
  width: 100%;
}

.sliderValue span {
  position: absolute;
  height: 25px;
  width: 25px;
  transform: translateX(1%) scale(1);
  font-weight: 500;
  top: 5px;
  line-height: 25px;
  z-index: 2;
  color: #fff;
  transform-origin: bottom;
  transition: left 0.1s ease-in-out;
  font-size: 12px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.field .value {
  position: absolute;
  font-size: 14px;
  color: #000000;
  font-weight: 600;
}

.field .value.left {
  left: -18px;
}

.field .value.right {
  right: -33px;
}

.range input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #ddd;
  border-radius: 4px;
  outline: none;
  border: none;
  z-index: 2222;
}

.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid #000000;
  cursor: pointer;
}

.range input::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid #000000;
  cursor: pointer;
}

.range input::-moz-range-progress {
  background: #000000;
}

.save-button {
  width: 380px;
  height: 49px;
  background-color: rgb(0, 0, 0);
  border-radius: 8px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  max-width: calc(100vw - 40px);
  width: min(380px, calc(100vw - 40px));
  transform: translateY(20px);
  opacity: 0;
}

.modal-overlay.active .save-button {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.4s ease 0.2s;
}

.save-button:hover {
  transform: translateY(-2px);
  background-color: rgb(20, 20, 20);
}

.simple-modal {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  padding-bottom: 0px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.active .simple-modal {
  transform: translateY(0);
}

.favorites-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .favorites-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.product-code-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-code-rectangle.hidden {
  display: none;
}

.modal-overlay.active .product-code-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.product-code-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-code-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  display: block;
  -webkit-user-select: text;
  user-select: text;
}

.product-code-input:focus {
  border-color: #000000;
}

.import-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.import-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

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

.import-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.box-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 10px;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .box-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.simple-modal-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  width: 100%;
}

.box-subtitle {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 15px;
  flex-shrink: 0;
  width: 100%;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 1px;
  background-color: #ffffff;
  border-radius: 8px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}

.favorite-item.removing {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.favorite-item:hover {
  background-color: #f1f5f9;
}

.favorite-item-image,
.box-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  transition: opacity 0.3s ease-in-out;
}

.favorite-item-name {
  flex: 1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.favorite-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.favorite-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.favorite-action-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.favorite-action-btn:active {
  transform: translateY(0);
}

.favorite-action-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.box-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 1px;
  background-color: #ffffff;
  border-radius: 8px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}

.box-item.removing {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.box-item:hover {
  background-color: #f1f5f9;
}

.box-item-name {
  flex: 1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.box-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.box-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.box-action-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.box-action-btn:active {
  transform: translateY(0);
}

.box-action-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.empty-favorites {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  width: 100%;
}

.empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.warning-message {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #dc2626;
  text-align: center;
  padding: 15px;
  background-color: #fee2e2;
  border-radius: 8px;
  margin-top: 10px;
  width: 100%;
}

.personal-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .personal-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.address-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 450px;
  min-height: 450px;
  max-height: 450px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .address-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.orders-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .orders-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.orders-back-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .orders-back-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.return-order-summary {
  width: 100%;
  padding: 12px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.6;
}

.return-button {
  width: 100%;
  height: 45px;
  background-color: #fe8410;
  border-radius: 30px;
  border: none;
  color: white;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 10px;
}

.return-button:active {
  opacity: 0.8;
}

.return-success-message {
  width: 100%;
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #000000;
  text-align: center;
  line-height: 1.6;
  display: none;
}

.return-success-message.show {
  display: block;
}

.info-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-input {
  width: 100%;
  height: 45px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 15px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}

.info-input:focus {
  border-color: #000000;
}

.info-textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 15px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  -webkit-user-select: text;
  user-select: text;
}

.info-textarea:focus {
  border-color: #000000;
}

.accept-address-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .accept-address-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.saved-address-display {
  width: 100%;
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: left;
}

.update-address-button {
  width: 100%;
  height: 45px;
  background-color: #fe8410;
  color: white;
  border: none;
  border-radius: 35px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 25px;
}

.update-address-button:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.update-address-button:active {
  transform: translateY(0);
}

.box-type-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 35px;
  -webkit-overflow-scrolling: touch;
  padding-top: 30px;
}

.modal-overlay.active .box-type-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.box-type-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 5px;
}

.box-type-description {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}

.box-type-price {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

.siparis-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 10px 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .siparis-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.siparis-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
}

.siparis-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: 8px;
}

.siparis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  padding: 8px 0;
}

.siparis-label {
  font-weight: 500;
  color: var(--text-primary);
}

.siparis-value {
  font-weight: 400;
  color: var(--text-primary);
}

.siparis-total {
  border-top: 2px solid #b7b7b7;
  padding-top: 15px;
  margin-top: 10px;
}

.siparis-total .siparis-label,
.siparis-total .siparis-value {
  font-size: 18px;
  font-weight: 600;
}

.confirm-order-button {
  width: 100%;
  max-width: 350px;
  height: 50px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 30px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.confirm-order-button:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

.confirm-order-button:active {
  transform: translateY(0);
}

.siparis-finish-rectangle {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px 20px;
  flex: 0 0 auto;
  margin-top: 20px;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 70px;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .siparis-finish-rectangle {
  transform: translateY(0);
  opacity: 1;
}

.siparis-success-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  line-height: 1.4;
}

.siparis-success-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.order-item {
  width: 100%;
  padding: 15px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
}

.order-item-label {
  font-weight: 600;
  color: var(--text-muted);
}

.order-item-value {
  font-weight: 500;
  color: var(--text-primary);
}

/* Added styles for order details section */
.order-details-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-top: 15px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.order-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.order-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.order-product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.order-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-product-name {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.order-product-code {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.order-product-size {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
/* </CHANGE> */

.order-status {
  display: inline-block;
  padding: 4px 1px;
  color: #0f172a;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.notification-button {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fe8410;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(254, 132, 16, 0.3);
  transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  pointer-events: none;
}

.notification-button.show {
  top: calc(var(--topbar-height) / 2 - 20px);
}
