.basket-page {
  padding: 30px 20px 100px; background: white; min-height: 100vh;
}

.basket-header {
  text-align: center;
  padding: 0 0 32px;
  margin-top: 0;
  position: relative;
}

.basket-title {
  text-align: center;
  color: black;
  font-size: 26px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 32px;
}

.basket-clear-btn {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 12px;
  cursor: pointer;
  opacity: 0.4;
  object-fit: none;
}

.basket-swipe {
  position: relative;
  margin: 0 -20px;
  overflow: hidden;
}

.basket-swipe-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: #FF3B30;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  will-change: transform;
}

.basket-swipe-action-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 100%;
  cursor: pointer;
}

.basket-swipe .basket-row {
  position: relative;
  z-index: 1;
  background: white;
  margin: 0;
  will-change: transform;
  touch-action: pan-y;
}

.basket-row {
  display: flex;
  align-items: center;
  padding: 9px 20px;
  margin: 0 -20px;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.basket-check {
  width: 22px;
  height: 22px;
  border: 1.5px solid #D9D9D3;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.basket-check.checked {
  background: black;
  border-color: black;
}

.basket-check.checked::after {
  content: '';
  width: 20px;
  height: 20px;
  background: url('/images/Icons/done.svg') no-repeat center;
  background-size: contain;
  filter: invert(1);
}

.basket-row-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #F4F5F0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.basket-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.basket-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.basket-row-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-row-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #999;
  line-height: 14px;
}

.basket-row.bought {
  background: #F4F5F0;
}

.basket-row.bought .basket-row-img,
  .basket-row.bought .basket-row-name {
  opacity: 0.4;
}

.basket-row.bought .basket-row-name {
  text-decoration: line-through;
}

.basket-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.basket-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #CCCCCA;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  font-family: 'Inter', sans-serif;
  padding: 0 0 2px 0;
}

.basket-qty-value {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  min-width: 30px;
  text-align: center;
  white-space: nowrap;
}

.basket-qty-count {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  width: 2ch;
  text-align: center;
}

.basket-row-qty {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  line-height: 14px;
}

.basket-divider {
  height: 1px;
  background: #ECECEC;
  margin: 24px 0;
}

.basket-action-btn {
  display: flex;
  height: 50px;
  background: #000;
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: calc(100% - 40px);
  position: fixed;
  bottom: 84px;
  left: 20px;
  z-index: 999;
}

.basket-empty {
  text-align: center;
  padding: 40px 0;
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

@media (min-width: 375px) {
  .basket-row-name,
  .basket-qty-btn,
  .basket-empty {
    font-size: 16px;
  }
}

@media (min-width: 440px) {
  .basket-row-sub {
    font-size: 14px;
  }

  .basket-row-name,
  .basket-qty-btn,
  .basket-empty {
    font-size: 16px;
  }

  .basket-action-btn {
    font-size: 17px;
  }

  .basket-title {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (min-width: 640px) {
  .basket-page {
    padding-top: 40px;
  }

  .basket-title br {
    display: none;
  }
}

/* Empty state */
.basket-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 60px;
}
.basket-empty-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}
.basket-empty-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}
.basket-empty-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #A1A09F;
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 28px;
}
.basket-empty-cta {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.basket-empty-cta:hover {
  background: #222;
}

@media (min-width: 440px) {
  .basket-empty-emoji { font-size: 72px; }
  .basket-empty-title { font-size: 22px; }
  .basket-empty-text { font-size: 15px; }
}

@media (min-width: 640px) {
  .basket-empty { padding: 60px 20px 80px; }
  .basket-empty-emoji { font-size: 80px; }
  .basket-empty-title { font-size: 24px; }
  .basket-empty-text { font-size: 16px; max-width: 340px; }
}

